Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids
Message
Information générale
Forum:
ASP.NET
Catégorie:
.NET Compact Framework
Titre:
Re: Grids
Divers
Thread ID:
01133893
Message ID:
01134843
Vues:
18
if (dataset.Tables[0].Rows.Count  > 0)
			{
				int lnorderid = (int)dataset.Tables[0].Rows[this.orderitems.CurrentRowIndex]["id"];
				int lnsample = Convert.ToBoolean(dataset.Tables[0].Rows[this.orderitems.CurrentRowIndex]["sampleinvoice"])==true?1:0;
Hi, Fred...

I haven't used the CurrentRowIndex property, I mainly use the binding context position, but let me ask this....if the grid has been sorted (end user clicks on a column heading), does the currentRowIndex property respect that? I know that with the binding position, if you want to use that number as an indexer into the datatable, you need to utilize the current defaultview of the datatable.

Again, I don't know if it's relevant, I don't use the currentrowindex, but figured I'd ask.

Kevin
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform