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...