DataGrid Events

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

Guest

Which event would I use to reformat a date which is databound to a field in
my data table? I have a column which has a date of 12/31/9999 which is a
default date meaning no date has been entered and I want the grid to show
this date as spaces if it contains that value, otherwise I want to format the
date.

So should I use a Datagrid event to perform this action or is there some
other way which is more appropriate?

Thanks
 
You can use either ItemDataBound or PreRender event. ItemDataBound gets a
reference to a grid row that is being databound. In PreRender event all rows
are already built, you can loop through them.

Eliyahu
 
Back
Top