How to loop through each and every row, column and cells in a GridView and get its value
问题 I have a GridView which is databound, on button_click I want to read the GridView row by row each column and read the value of each cell in a row and update a table in database? I also know how to check if that cell contains null. I am trying something like this and got stuck: protected void SAVE_GRID_Click(object sender, EventArgs e) { int rowscount = GridView2.Rows.Count; int columnscount = GridView2.Columns.Count; for (int i = 0; i < rowscount; i++) { for (int j = 1; j < columnscount; j++)