I would suggest using the Gridview Databound event . Because the
The unload event occurs when a server control is unloaded from memory.
protected void GridView1_DataBound(object sender, EventArgs e) { foreach (GridViewRow row in grvSearchRingTone.Rows) { String coltext = row.Cells[1].Text; } }
Data binding events occur after the server control communicates with the data source.
To see how gridview events work, check out MSDN.
source share