5
Answers

Record cound from datagridview , or datadet

David Smith

David Smith

15y
2.8k
1

can some one post a sample code up where in you can get a record count in the datagridview

from a speacify item under a column or a row.


for example

id         a           b          c

--------------------------------
1   |      f      |       t     |   u
     |             |             |
2   |     f       |      w    |    t


How can i find f is populated under column a.   
this is the record count im trying to do

3       r              e           r
Answers (5)
0
Peter

Peter

NA 4 0 15y
That much I know.  My question is, why one PC converts 1 to string and gets "1" and the other does the same thing and gets "1.0"?
0
Manish Dwivedi

Manish Dwivedi

NA 8.3k 1.2m 15y
Hi

This is happening due to this res = "1.0" {string} while converting.

because you are using int.TryParse so u have to pass the values like 1,2,123,10 etc in the res parameter.

I think u got it.