Hi,
I new to vb .net and fw 2002!
Does this extract the current row only from the dataset into a datarow?
If so what would be the command to update the datarow (current row) back into the dataset and update the datasource?
I use the wizards generated dataadapters, datasets and so forth.
My coding is different than all pure vb code.
I am having trouble understanding the concept of currencymanager and bindingcontext. All my controls on the form are bound by the properties windows. I need to update fields that are not bound by any bindingcontext and therefore I need to be able to determine the correct currenet row whether it be and edit or add new row. What is the correct way to determine the current row whether it be a new row or and edited row?
I have been using the bindingcontext .position to determine the current row but it does not work when the user sorts the grid. The current row somehow gets mismatched and the bindingcontext .position is not the row number of the selected row after a sort has taken place.
Should I be using the binding context or the currency manager to manage the current row position?
Thanks
Roland
==========================================================================
>Use this expression:
>
>Dim CurrentDataRow As DataRow = CType(Me.BindingContext(SampleDataSet, "SampleTable").Current(), DataRowView).Row
>