Click here to Skip to main content
15,887,268 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey Friend how to identified when row is empty when data set is used
Posted

you can use dataset.rowfilter
 
Share this answer
 
how to identified when row is empty when data set is used
Not too clear but all it makes sense if you want to know that if dataset table has any data. If so, you can use Rows count.
C#
if(myDataset.Tables[0].Rows.Count > 0)
{
  // there is some data.
}


Having an empty row in a table does not makes sense as if no value is there, it would not be a part of table at all when you retrieved it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900