Link to home
Start Free TrialLog in
Avatar of VBdotnet2005
VBdotnet2005Flag for United States of America

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
Avatar of Asim Nazir
Asim Nazir
Flag of Pakistan image

Here it's:

DataTable dt;

If(dt != null and dt.Rows.Count>0)
{
// Process. Looping etc.
}
Avatar of VBdotnet2005

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.
the entry row.
ASKER CERTIFIED SOLUTION
Avatar of Asim Nazir
Asim Nazir
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial