Tuesday, September 21, 2010

Looping through all Grid view Data : ASP.Net

Scope of accessing data in a Grid view can be bifurcated into three major parts:


foreach (GridViewRow row in GridViewName.Rows)
{
//row is obect type of GridViewRow. It can be used to pass row index value too.

if (...Condition Check...)
{
Code... ;
}

}

No comments:

Post a Comment