VBdotnet2005
asked on
Check empty datarow
How can I check to see if in datatable is empty while looping in datatable?
For I as integer = 0 to mydatatable.rows.count - 1
??
next
For I as integer = 0 to mydatatable.rows.count - 1
??
next
ASKER
sorry, I meant to skip an empty row.
What I am trying to do is to loop through datatable. If any rows that is empty, then skip reading it.
What I am trying to do is to loop through datatable. If any rows that is empty, then skip reading it.
ASKER
the entry row.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
DataTable dt;
If(dt != null and dt.Rows.Count>0)
{
// Process. Looping etc.
}