D
David Hallaran
Hi all!
I have a treeview. (Irrelevant).
In the target page I have a DataGrid populated with several data Items (a
SQL SP resultset as a DataTable.) and columns with Edit and Delete html
buttons.
There is a button outside of the grid labeled Add.
The Add button's purpose is to Clear() the DataTable which is the grid's
DataSource. After the clear() the Add function then adds a row to the
DataTable using DataTable.NewRow() followed by DataTable.InsertAt(). Then a
DataGrid.DataBind().
Sure enough the grid is cleared, the added DataGrid Item appears. The intent
is to allow the user fill in the new row and continue to add as necessary.
The problem: There is no Edit button, only Delete.
What am I doing wrong?
Thanks.
I have a treeview. (Irrelevant).
In the target page I have a DataGrid populated with several data Items (a
SQL SP resultset as a DataTable.) and columns with Edit and Delete html
buttons.
There is a button outside of the grid labeled Add.
The Add button's purpose is to Clear() the DataTable which is the grid's
DataSource. After the clear() the Add function then adds a row to the
DataTable using DataTable.NewRow() followed by DataTable.InsertAt(). Then a
DataGrid.DataBind().
Sure enough the grid is cleared, the added DataGrid Item appears. The intent
is to allow the user fill in the new row and continue to add as necessary.
The problem: There is no Edit button, only Delete.
What am I doing wrong?
Thanks.