hello Everybody ,
i have a question and i need reply ASAP ...
i have radgrid with GridButtonColumn
<telerik:GridButtonColumn UniqueName="ActivateColumn" CommandName="Activation" Text="DeActivate" />
and there is ItemDataBound Event handller which i want to get the GridButtonColumn in this handler
what can i do ???
protected void Radgrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
ObjectType currentEntity = e.Item.DataItem as ObjectType ;
if (ObjectType != null)
{
// i want to get GridButtonColumn here to change it's text and command name , .....
GridButtonColumn x = e.Item.FindControl("ActivateColumn");
x.Text = "xxxxx" ;
x.CommandName = "XXX";
}
}
i have a question and i need reply ASAP ...
i have radgrid with GridButtonColumn
<telerik:GridButtonColumn UniqueName="ActivateColumn" CommandName="Activation" Text="DeActivate" />
and there is ItemDataBound Event handller which i want to get the GridButtonColumn in this handler
what can i do ???
protected void Radgrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
ObjectType currentEntity = e.Item.DataItem as ObjectType ;
if (ObjectType != null)
{
// i want to get GridButtonColumn here to change it's text and command name , .....
GridButtonColumn x = e.Item.FindControl("ActivateColumn");
x.Text = "xxxxx" ;
x.CommandName = "XXX";
}
}