GridViewComboBoxColumn - How to set DropDownSizingMode?

3 posts, 1 answers
  1. Stargazer
    Stargazer avatar
    73 posts
    Member since:
    Jan 2007

    Posted 20 Oct 2008 Link to this post

    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. Answer
    Nick
    Admin
    Nick avatar
    767 posts

    Posted 21 Oct 2008 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Stargazer
    Stargazer avatar
    73 posts
    Member since:
    Jan 2007

    Posted 21 Oct 2008 Link to this post

    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
Back to Top