Skip to content

Count the similar values in the grid view column

Muhammad Shah

Asked Jan 29, 2016, 2:06 AM EST1 answer
Share
LinkedInX
I want to get the count of similar values
 
For Example:
 

Summer

Decision

Hot

Yes

Hot

Yes

Cold

No

Cold

No

Hot

No

Hot

No

Cold

Yes

  in this Table I want to get the total number of Hot values and total number of cold values in gridview by using c#

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    textbox.text = datagridview.RowCount.ToString();
    0