If you are setting a datasource the something like this should help
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;
}
>If it was VFP I would have no problems
>Will Hentzen has got every book you could ever need
>
>Just cant get into VS documentation
>
>Have tried getting into the WebCasts
>
>But 2 weeks later you forget what you saw and them try to find out where
>
>Richard
Fred Besterwitch, MCP
The harder you work. The luckier you get.