Can I populate GridDropDownColumn with Datatable in PageLoad?
I tryed this:
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