any idea how to find the last row in gridview.
this is my code
foreach(GridViewRow row in GridView3.Rows) { if (row.RowType == DataControlRowType.DataRow) { lblLastRow.Text = row.Cells[0].Text +")"; } }
This way
GridViewRow row = GridView3.Rows[GridView3.Rows.Count - 1];
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.