How do I trigger the call for RowBind when populating the gridview? I am also assuming I can define the text for a cell by:
if (e.Row.Cells[2].Text.Conta
e.Row.Cells[2].Text = "Completed";
else
e.Row.Cells[2].Text = "";
Thanks!
Main Topics
Browse All Topics





by: lijunguoPosted on 2008-07-01 at 20:30:48ID: 21913232
You need to use RowBind event to handle this when populating the GridView
) ins("true" ))
public void RowBind(Object sender , GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow
{
if (e.Row.Cells[1].Text.Conta
//logic to do changes
}
}