//Put the timer and write this below loop into the timer for (int j = 0; j < grid1.Rows.Count; j++) { if (grid1.Rows[j].Cells[0].Value != null) { Boolean b1 = (Boolean)grid1.Rows[j].Cells[0].Value; if (b1 == true) { //Here you can add the value to the second grid //if (b1==true) add the value to the second grid //if (b1==false) remove the value from the second grid //The important thing is, when you add the value to the second grid you should add the values soap and electronics also in the second grid. it should be in the another column and that column should be in visible = false //Based on this column you can remove the items when the checkbox is unchecked from the grid1 } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)