dataset fetching data

Posted by Jiturcm under C# on 4/18/2011 | Points: 10 | Views : 1750 | Status : [Member] | Replies : 3
what does it mean?
ds.Tables[0].Rows.Count > 0

jitendra kumar mahapatro


Responses

Posted by: Prabhakar on: 4/18/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi Jiturcm


what u want . . in this code u check data are exits or not .

Best Regard's
Prabhakar

Jiturcm, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sault on: 4/18/2011 [Member] Starter | Points: 25

Up
0
Down
"what does it mean?
ds.Tables[0].Rows.Count > 0 "

It is a check to see if the count of rows in the table is greater than zero.

Jiturcm, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 4/18/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
This code means in the Dataset and in the first table we are checking if that table has records.

Thank you for posting at Dotnetfunda
[Administrator]

Jiturcm, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response