|
Hello....
I am using the following code..
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
if (e.Row.Cells[3].Text == "scrapped")
{
e.Row.Visible=false;
}
}
}
Here the e.Row.Cells[3].Text returns combined texts of all cells in that particular column. For example if column 'status' contains In Progress, Waiting,Scrapped etc the e.Row.Cells[3] returns 'In ProgressWaitingScrapped'. What i need is the 'i'th rows cell[3] value and compare that to string 'Scrapped' and the disable 'i'th row completely which contains the value 'Scrapped'. Can someone help me with this.
Many Thanks....
|
|
|
|
|
|
|
|