void serialno_generator()
{
try
{
int c = 1;
int j = int.Parse(dataGridView1.Rows.Count.ToString());
for (int k = 0; k < j; k++)
{
dataGridView1.Rows[k].Cells[0].Value = c.ToString();
c = c + 1;
}
}
catch (Exception eserial)
{
MessageBox.Show(eserial.Message, "Serial No");
}
0 comments:
Post a Comment