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

[Solved] Populate GridDropDownColumn with Datatable

1 Answer 169 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marco Rosignoli
Top achievements
Rank 1
Marco Rosignoli asked on 18 Mar 2010, 03:08 PM
Can I populate GridDropDownColumn with Datatable in PageLoad?
I tryed this:
 

 

DataTable dtAree = new DataTable("AreeAssociate");  
dtAree.Columns.Add("Area");   
 
// here I populatre datatable with a for  
-----  
 
GridDropDownColumn boundColumn = new GridDropDownColumn();   
this.RadGrid1.MasterTableView.Columns.Add(boundColumn);   
boundColumn.DataSourceID = "AreeAssociate";  
boundColumn.DataField = "Area";   
boundColumn.HeaderText = "Area";   
boundColumn.ListTextField = "Area";   
boundColumn.ListValueField = "Area";   
boundColumn.AllowSorting = false;  

 

 


Where is the error?
Thank you

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 18 Mar 2010, 04:14 PM
Hello Marco,

For more information about how to achieve the desired functionality, please refer to the following forum thread, which elaborates on this subject:

http://www.telerik.com/community/forums/aspnet-ajax/grid/griddropdowncolumn-binding-and-selected-value.aspx

Sincerely yours,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Marco Rosignoli
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or