Hi Guys
I have an editable datagrid with Edit, Update and Cancel controls shown as links within my datagrid. However when I click on the Edit, Update and Cancel links within my rendered table the table disappears. I know these link controls work because I have a push button that gets a dataset to bind to the datagrid and then databinds the datagrid to the data source. If I click on the push button (which effectively does a free text search) the table does appear. However when I press the Edit, Update and Cancel links the table disappears. The code I am using for the Edit option is as follows. Is there anything else I should be doing to bind the datagrid on selecting Edit:
Public Sub DataGrid_Edit(ByVal Source As Object, ByVal E As DataGridCommandEventArgs)
dgSearch.EditItemIndex = E.Item.ItemIndex
DataBind()
End Sub
Thank you
I have an editable datagrid with Edit, Update and Cancel controls shown as links within my datagrid. However when I click on the Edit, Update and Cancel links within my rendered table the table disappears. I know these link controls work because I have a push button that gets a dataset to bind to the datagrid and then databinds the datagrid to the data source. If I click on the push button (which effectively does a free text search) the table does appear. However when I press the Edit, Update and Cancel links the table disappears. The code I am using for the Edit option is as follows. Is there anything else I should be doing to bind the datagrid on selecting Edit:
Public Sub DataGrid_Edit(ByVal Source As Object, ByVal E As DataGridCommandEventArgs)
dgSearch.EditItemIndex = E.Item.ItemIndex
DataBind()
End Sub
Thank you