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

[Solved] Bind GridDropDownColumn

3 Answers 200 Views
Grid
This is a migrated thread and some comments may be shown as answers.
rema43001
Top achievements
Rank 1
rema43001 asked on 04 Nov 2009, 04:24 PM
Hello:

Can you help me?
I need to bind a GridDropDownColumn

Thanks.

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 04 Nov 2009, 04:58 PM
Hello Richard,

Please review the following forum thread which elaborates on similar subject:
http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-dropdown-binding.aspx

Kind regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
rema43001
Top achievements
Rank 1
answered on 05 Nov 2009, 03:54 PM
Thanks, I need to bind the GridDropDownColumn programmatically.

For example:

        sql = "SELECT tipoasig ";
        sql += "FROM catipoasigtb ";

        DataSet DStipoasig = new DataSet();
        OracleDataAdapter DAtipoasig = new OracleDataAdapter(sql, Cn);
        DAtipoasig.Fill(DStipoasig);
        DDLtipoasig.ClearSelection();
        DDLtipoasig.DataSource = DStipoasig;
        DDLtipoasig.DataTextField = "tipoasig";
        DDLtipoasig.DataValueField = "tipoasig";
        DDLtipoasig.DataBind();
        DDLtipoasig.SelectedValue = "AS";

Can you help me?

Thanks

0
Accepted
Shinu
Top achievements
Rank 2
answered on 06 Nov 2009, 07:28 AM
Hi,

Have you cehcked out the following help link on how to configure  the GridDropDownColumn. You can either set its ListDataMember property to a  specific Data table  or set the DataSourceID  to a  datasource control. You can also access the Dropdownlist editor and set its datasource in the ItemDataBound event

Customize/Configure GridDropDownColumn

Thanks,
Shinu
Tags
Grid
Asked by
rema43001
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
rema43001
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or