You can get the binding data record using following code example:
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
string name= DataBinder.Eval(e.Row.DataItem, "StudentName") as string;
if (name!= null && name.Length > 0)
{
}
}
}
No comments:
Post a Comment