Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine current row in dataset table?
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
How to determine current row in dataset table?
Miscellaneous
Thread ID:
00921200
Message ID:
00921200
Views:
74
I am trying to delete the currently selected row (record) in a dataset table. This code works fine if my form contains a grid:

int iRowNumber = this.dataGrid1.CurrentCell.RowNumber;
this.dataset12.employer.Rows[iRowNumber].Delete();

If the form does not contain a grid, how to determine the current row number and delete it?

this.dataset12.employer.Rows[?????????].Delete();

Many thanks,

Todd
The day you take complete responsibly for yourself, the day you stop making any excuses, thats the day you start to the top. - O.J. Simpson

Great advice from a questionable source...
Next
Reply
Map
View

Click here to load this message in the networking platform