This is a migrated thread and some comments may be shown as answers.

RadGrid Event

1 Answer 22 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ghadeer
Top achievements
Rank 1
ghadeer asked on 31 Dec 2008, 09:43 AM
Hello ALL,

which is the  event that can I used to change the data befor bind it  to grid like:

try

{

Telerik.Web.UI.

GridDataItem _dataItem = e.Item as Telerik.Web.UI.GridDataItem;

 

 

if (_dataItem["Status"].Text == "ASSIGNED")

 

{

 

if (Session["DepartmentCode"].ToString() != "61")

 

_dataItem[

"Status"].Text = "APPROVED";

 

}

}

 

catch

 

{

}


thanks
ghadeer

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 1
answered on 31 Dec 2008, 09:58 AM
Hello Ghadeer,

The event that you can possibly use to change a data before the grid is rendered is ItemDataBound. You can check for a data in the grid only if the data is bound to the grid but you can make changes in the ItemDataBound which will take effect before the Grid is rendered.

Thanks
Princy.

Tags
Grid
Asked by
ghadeer
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or