Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete current record in a grid
Message
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00905208
Message ID:
00905561
Views:
13
Kevin,

This looks like exactly what I needed.

Thanks very much,

>
>BindingManagerBase bMgr = oGrid.BindingContext[oGrid.DataSource,oGrid.DataMember];
>
>DataRow dr = ((DataRowView)bMgr.Current).Row; // the data row that I'm on
>
>string cCurrentPriKey = dr["primarykey"].ToString();
>
>..at this point, I have cCurrentPriKey for the row the user is on...I can now do a lookup with an ADO.NET FIND function to get at that current row and delete it...of course, the FIND only works if you've defined the primaryKey for that datatable.
>
Larry Tucker
Previous
Reply
Map
View

Click here to load this message in the networking platform