Yes that's more or less it... I have a datagrid that is bound to a dataset,
that is filled with a dataadapter, now the dataadapter contains all the
commands for select, insert, delete, update. Then the textboxes (that show
the detailed record that is selected in the datagrid) are also bounded using
the same dataset. I'm not using a dataview, just the dataadapter and the
dataset. Now if I don't bind the combo box, everything works fine, but as
soon as I bind it, the problem shows up
Thanks for your answer
> Are you trying to do something similar to this example:
> http://www.fawcette.com/vsm/2002%5F01/magazine/features/abrust/
[quoted text clipped - 4 lines]
> Hope this helps,
> Rashmi
Rashmi - 07 Jun 2005 14:36 GMT
To move to the newly added row you could do something like this:
i = dataset.Tables(tablename).Rows.Count
DataGrid1.CurrentCell = New DataGridCell(i, 0)
Also, Is the combobox bound to any datasource ?
Rashmi - 07 Jun 2005 14:41 GMT
To move to the newly added row you could do something like this:
i = dataset.Tables(tablename).Rows.Count
DataGrid1.CurrentCell = New DataGridCell(i, 0)
Also, Is combobox bound to any datasource?
-Rashmi
Sorry, I did not read your first post carefully. For binding the combo
boxes you can try using "SelectedValue" property , Eg:
combobox.DataBindings.Add("SelectedValue", dataset, "fieldname")