DataTable dt = new DataTable(); for (int j = 0; j < grdList.Rows.Count; j++) { DataRow dr; GridViewRow row = grdList.Rows[j]; dr = dt.NewRow(); for (int i = 0; i < row.Cells.Count; i++) { dr[i] = row.Cells[i].Text; } dt.Rows.Add(dr); }
Mark as Answer if its helpful to you Kumaraspcode2009@gmail.com
Login to post response