Hi!
I have a DataGrid Binded to a DataSet in Design time. In this form I select a row in the dataGrid and after pushing a button I go to another form to edit some date related to that row. After updating my information in this new form I call a method from the previous form ( the one with the DataGrid ) called reload().
This is the code for Relaod:
dbaClientes is the DataAdapter an DsListaClientes1 the DataSet that popuplates de grid.
The DataGrid seems to repopulate correctly and I can see the changes on it but whatever Cell I choose now its SelectedRowIndex is always 0.
Is this normal? How Can I solve this?
Thanks.
I have a DataGrid Binded to a DataSet in Design time. In this form I select a row in the dataGrid and after pushing a button I go to another form to edit some date related to that row. After updating my information in this new form I call a method from the previous form ( the one with the DataGrid ) called reload().
This is the code for Relaod:
Public Sub Reload()
DsListaClientes1.Clear()
dbaClientes.Fill(DsListaClientes1)
End Sub
dbaClientes is the DataAdapter an DsListaClientes1 the DataSet that popuplates de grid.
The DataGrid seems to repopulate correctly and I can see the changes on it but whatever Cell I choose now its SelectedRowIndex is always 0.
Is this normal? How Can I solve this?
Thanks.