Shovan Saha

Shovan Saha

  • NA
  • 321
  • 91.8k

datagridview1 row count less 1

Aug 16 2017 2:08 PM
I have a datagridview1. I want to (count row - 1) and show in a label. I have tried like this error in string to int.
private void lblCountAP()
{
int x = dataGridView1AP.Rows.Count.ToString();
lblCountArmy.Text = x - 1;
}
 

Answers (1)