Change value of column in datagrid

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to be able to ascertain the value in the cells of a column on a
datagrid and then change the value as follows:

If the value is " " I want the value displayed to be "N"

If the value is not " " I want the value to be "Y"

How do I accomplish this task?

Thanks,

Dave
 
You can change it on ItemDataBound event.

if (e.Item.Cells.text=="")
{
e.Item.Cells.text="N";
}
else
 
Back
Top