We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Check empty datarow

VBdotnet2005
VBdotnet2005 asked
on
Medium Priority
557 Views
Last Modified: 2012-06-21
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
Comment
Watch Question

Asim NazirProject Manager

Commented:
Here it's:

DataTable dt;

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

Author

Commented:
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.

Author

Commented:
the entry row.
Project Manager
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.