Anuradha sb

Anuradha sb

  • NA
  • 53
  • 7.6k

How to separate it with comma if data is more than 1 ?

Sep 5 2022 6:06 AM
foreach (DataGridViewRow row in dataGridView1.Rows)
{currQty += row.Cells["dbbname"].Value;
}

How to separate it with comma if data is more than 1 ?

example result:

db1,db2,db3

but if only one it will show

result:

db1


Answers (3)