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