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

ListDataMember

1 Answer 118 Views
Grid
This is a migrated thread and some comments may be shown as answers.
etu
Top achievements
Rank 1
etu asked on 24 Aug 2008, 07:21 AM
Hi there.

How can i change the ListDataMember of GridDropDownColumn dinamically.I need to solve this problem urgently.

Thankyou.

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 25 Aug 2008, 06:21 AM
Hello etu,

You can change the ListDataMember property of the GridDropDownColumn programmatically as shown below.
cs:
protected void RadGrid1_PreRender(object sender, EventArgs e) 
    { 
        foreach (GridColumn column in RadGrid1.Columns) 
        { 
            if (column .UniqueName == "Name") 
            { 
                (column as GridDropDownColumn).ListDataMember = "AccessLevel"
            } 
        } 
    } 

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