c# - Add buttons to a gridview row manually -
i want have dynamic gridview includes 3 buttons in each rows.i want have 5 rows in grid view.i use code populate data row.but don't know how add button each row.can 1 me?
datagridviewrow row = new datagridviewrow(); row.createcells(scanimagesgrid); row.cells[0].value = "1"; row.cells[1].value = "عکس شخصی"; row.cells[2].value= //my button no1 row.cells[3].value= //my button no2 row.cells[4].value= //my button no4 scanimagesgrid.rows.add(row);
i want know how respond on click event of each button in each row. lot
Comments
Post a Comment