Hi!
I am creating my RadGrid entirely programmatically, no declarations in any ASPX-page.
My question concerns if it somehow is possible to bind properties of a certain column.
For instance, let's save I create a GridButtonColumn:
GridButtonColumn bc = new GridButtonColumn();
... // set up the column
bc.CommandName = DoMagicBindingToField("CommandNameColumn");
In this case, the button for each row in the grid would have a CommandName that comes from the CommandNameColumn-column in the datasource.
Is there anything like DoMagicBindingToField?
In other words, I would like to do something that corresponds to the following declaration in an ASPX-page:
<telerik:GridButtonColumn CommandName="<% eval("CommandNameColumn")">
I believe I can do this with template-columns, but that is not an option for my, I need to use GridButtonColumn.
Many thanks!
/Fredrik
I am creating my RadGrid entirely programmatically, no declarations in any ASPX-page.
My question concerns if it somehow is possible to bind properties of a certain column.
For instance, let's save I create a GridButtonColumn:
GridButtonColumn bc = new GridButtonColumn();
... // set up the column
bc.CommandName = DoMagicBindingToField("CommandNameColumn");
In this case, the button for each row in the grid would have a CommandName that comes from the CommandNameColumn-column in the datasource.
Is there anything like DoMagicBindingToField?
In other words, I would like to do something that corresponds to the following declaration in an ASPX-page:
<telerik:GridButtonColumn CommandName="<% eval("CommandNameColumn")">
I believe I can do this with template-columns, but that is not an option for my, I need to use GridButtonColumn.
Many thanks!
/Fredrik