Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids
Message
General information
Forum:
ASP.NET
Category:
.NET Compact Framework
Title:
Re: Grids
Miscellaneous
Thread ID:
01133893
Message ID:
01134843
Views:
17
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
Previous
Reply
Map
View

Click here to load this message in the networking platform