Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best practice on binding controls
Message
 
To
23/03/2005 11:48:21
General information
Forum:
ASP.NET
Category:
.NET Compact Framework
Miscellaneous
Thread ID:
00998417
Message ID:
00998515
Views:
35
>Yeah, well, it does seem strange that you can find nothing about this. Maybe you *are* doing something wrong, but it all looks good to me. Have you tried posting a question elsewhere? (I like GotDotNet, and I guess the microsoft public newsgroups have some good people hanging out there too).

Yes on microsoft.public.dotnet.framework.compactframework, still no answer.

>OK, well, you already know how to determine that your row has been modified. If you're asking about how to find which column has been modified, then you can do something like this (assuming the CF has this functionality) ... sorry, this is C# code, but it shouldn't be too hard for you to convert it to VB:
>
>DataRow row = MyDataSet.Tables["MyTable"].Rows[IndexOfChangedRow];
>for (int i=0; i < MyDataSet.Tables["MyTable"].Columns.Count; i++)
>{
>	if (row[i, DataRowVersion.Current].Equals(row[i, DataRowVersion.Original]))
>		MessageBox.Show("no changes");
>	else
>		MessageBox.Show("this row changed");
>}
>
>
>~~Bonnie

Bonnie, thanks for the code!, I think I can workaround this problem not using the dataset.haschanges() but comparing

row(i,DataRowVersion.Original) and row(i,DataRowVersion.Proposed)

which are equals when I skip (beloved VFP!!!) records without make changes in the textbox (but dataset.haschanges()=true!!!) and are different when I modify the textboexs.
thanks!

Franco
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform