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

[Solved] griddropdowncol

1 Answer 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ayesha
Top achievements
Rank 1
Ayesha asked on 02 Aug 2009, 03:24 PM

Hi,

I've a radgrid.I need to have 2 columns one is a datacolumnand other one is a  griddropdown column.
Can i use a datatable, datarow method to populate the grid and update it.

I need griddriopdown column as second column ????

The first column is a datacolumn  If i first declare datacolumn in .cs and then
 in .ascx , under columns i create a griddropdown column, the griddrop down column is appearing as first column
but i need griddrop down column to appear as second column and my datacolumn as first column??
how is it possible.

Even if i have 1 datacolumn and 1 griddropdown column, cani use a datatable to populte data for them??
 can you help me with code

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 03 Aug 2009, 07:51 AM
Hello Zaheka,

Yes, you can populate your grid using a DataTable. Check out the following demo which illustrates on Simple DataBinding which should help you get started.
Simple Data Binding

For your second part, I suppose you are adding the DataColumn dynamically and the DropDownColumn declaratively, but RadGrid does not support mixing declarative grid columns with grid columns added dynamically at runtime. You should either create all the columns in the grid programmatically, or else define them in the ASPX file. REfer to the following document which specifies this.
Programmatic creation

Thanks
Princy.
Tags
Grid
Asked by
Ayesha
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or