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;
}

Amit GuptaRank #190 · 12.8K reputationPosted Aug 16, 2017, 10:44 AM EDT