Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bindingcontext position and datatable.row
Message
From
09/02/2003 14:00:36
 
 
To
01/02/2003 17:36:13
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00748036
Message ID:
00751195
Views:
20
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
>
Previous
Reply
Map
View

Click here to load this message in the networking platform