Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine current row in dataset table?
Message
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
How to determine current row in dataset table?
Divers
Thread ID:
00921200
Message ID:
00921200
Vues:
73
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...
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform