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

adding columns to Grid

1 Answer 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bharani Mani
Top achievements
Rank 1
Bharani Mani asked on 21 Oct 2010, 08:36 PM
Hello,
           It may be a simple question. I want to create a grid control and add columns like the following

 

<telerik:RadGrid ID="grid1" runat="server" GridLines="None">

 

 

<columns>

 

 

</columns>

 

 

</telerik:RadGrid>

I dont want to use datasource associated with the grid control. Is there a simple way to add columns to the grid??. I want to add rows dynamically like we add ListItem in list control. I went through the Property Builder. I dont see an option to add a column. I see an option to add bound column, button column etc. But I dont want any of that.

Thanks,
Bharani

 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 22 Oct 2010, 07:57 AM
Hello Bharani,

You could add the GridTemplatecolumn and customize the appearance using ItemTemplate/EditItemTemplate.


Checkout the documentation links:
Column types
Adding columns from design-time


And here is the documentation shows how to create the columns dynamically.
Programmatic creation


-Shinu.
Tags
Grid
Asked by
Bharani Mani
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or