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

GridViewComboBoxColumn - How to set DropDownSizingMode?

2 Answers 111 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Stargazer
Top achievements
Rank 2
Stargazer asked on 20 Oct 2008, 03:56 PM
Hi!

I'm writing an app that uses a RadGridView for massive data input. Some of the values are chosen from combo box columns.

I've tried using a cast to (RadComboBoxItem) of the default editor of the columns to set the DropDownSizingMode, but to no avail...

This would be great for me as the user sometimes can not see the fullness of the descriptions in the dropdown...

Is this possible to be achieved?

Thanks!!

2 Answers, 1 is accepted

Sort by
0
Accepted
Nick
Telerik team
answered on 21 Oct 2008, 11:27 AM
Hi Stargazer,

Thank you for your question.

Please review the following code snippet:

private void radGridView1_CellBeginEdit(object sender, GridViewCellCancelEventArgs e)  
        {  
            ((RadComboBoxEditor)this.radGridView1.ActiveEditor).DropDownSizingMode = SizingMode.UpDown;  
        } 


I hope this helps. Do not hesitate to contact me back if you need further assistance.

Sincerely yours,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Stargazer
Top achievements
Rank 2
answered on 21 Oct 2008, 04:07 PM
Thanks Nick! Than was it.

Sometimes I wonder on how I can not think of this things correcly...

Oh well, maybe the next time...:D
Tags
GridView
Asked by
Stargazer
Top achievements
Rank 2
Answers by
Nick
Telerik team
Stargazer
Top achievements
Rank 2
Share this question
or