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

Create GridTemplateColumn programatically, how?

1 Answer 82 Views
Grid
This is a migrated thread and some comments may be shown as answers.
alsi
Top achievements
Rank 1
alsi asked on 16 Aug 2008, 03:17 PM
Dear All!

I have a question. How can I do programatically (for example in Page_Load) and add to the RadGrid as a column the following GridTemplateColumn:

<telerik:GridTemplateColumn UniqueName="TemplatedID">
      <HeaderTemplate>
            <asp:Label runat="server" ID="lblIDHeader" Text="ID" />
       </HeaderTemplate>
       <ItemTemplate>
            <asp:Label runat="server" ID="lblID" />
        </ItemTemplate>
</telerik:GridTemplateColumn>

many thanks,
Gábor


1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 18 Aug 2008, 04:39 AM
Hi Gábor,

Go through the following help article which explains how to create Template columns programmatically.
Programmatic creation

Thanks
Shinu.

Tags
Grid
Asked by
alsi
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or