1
Answer

How to write this code fro the datagrid.

ZAIN ULARIFEEN

ZAIN ULARIFEEN

11y
875
1
#region SAVE AND UPDATE
               for (int i = 0; i < rowCount; i++)
               {
                   //CHECK ROW IS NOT SELECTED
                 if (Convert.ToBoolean(dataGridView1.Rows[i].Cells[0].Value) == false)
                   {
                       //ROW MUST HAVE STRING VALUE(NOT NULL OR EMPTY)
if (dataGridView1.Rows[i].Cells[1].Value != null && string.IsNullOrEmpty(dataGridView1.Rows[i].Cells[1].Value.ToString()) == false)
                       {
                           //IF ID IS NULL THAN SAVE
                           if (dataGridView1.Rows[i].Cells[5].Value == null)
                           {

}



Plzzz, Anyone Can Help Me.

Answers (1)