Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Oct 16, 2008 07:36 PM by bullpit
Participant
1199 Points
1916 Posts
Oct 16, 2008 06:13 PM|LINK
Can't figure out how to check for DataSet Table Row Count - below code not working, say not properly constructed
try
Contributor
4576 Points
869 Posts
Oct 16, 2008 07:31 PM|LINK
Doesn't look like your code will ever reach the part that tests the row count because you're returning a datatable before it reaches the block.
All-Star
21838 Points
4822 Posts
Oct 16, 2008 07:36 PM|LINK
Please post your full code. What you are doing should get you the row count.
zoltac007
Participant
1199 Points
1916 Posts
Getting Table Row Count from DataSet
Oct 16, 2008 06:13 PM|LINK
Can't figure out how to check for DataSet Table Row Count - below code not working, say not properly constructed
try
{ da.Fill(ds, "WordstrSearch");return ds.Tables["WordstrSearch"];
} if ( ds.Tables["WordstrSearch"].Rows.Count > 0)
{ Label1.Visible = False; }
DotNetAdviso...
Contributor
4576 Points
869 Posts
Re: Getting Table Row Count from DataSet
Oct 16, 2008 07:31 PM|LINK
Doesn't look like your code will ever reach the part that tests the row count because you're returning a datatable before it reaches the block.
www.dotnetadvisor.com
bullpit
All-Star
21838 Points
4822 Posts
Re: Getting Table Row Count from DataSet
Oct 16, 2008 07:36 PM|LINK
Please post your full code. What you are doing should get you the row count.
Max
Let Me Google That For You!