Results 1 to 5 of 5

Thread: Edit width or height dropdown of combobox in datagridview

  1. #1

    Thread Starter
    Fanatic Member manhit45's Avatar
    Join Date
    May 2009
    Location
    Ha noi - Viet Nam
    Posts
    826

    Edit width or height dropdown of combobox in datagridview

    Please help me. Thanks.
    --***----------***-----

    If i help you please rate me.

    Working with Excel * Working with String * Working with Database * Working with array *

    K51 ĐH BÁCH KHOA HÀ NỘI - Khoa CNTT pro.

  2. #2
    Lively Member
    Join Date
    Oct 2007
    Location
    Upper Midwest
    Posts
    123

    Re: Edit width or height dropdown of combobox in datagridview

    Have you tried using a CSS to control/format your dropdown? I'm not sure if you can do that in a grid view as I have never done it.

  3. #3

    Thread Starter
    Fanatic Member manhit45's Avatar
    Join Date
    May 2009
    Location
    Ha noi - Viet Nam
    Posts
    826

    Re: Edit width or height dropdown of combobox in datagridview

    Quote Originally Posted by Tealmad View Post
    Have you tried using a CSS to control/format your dropdown? I'm not sure if you can do that in a grid view as I have never done it.
    No, i dont know that.

    I want to set combobox 's height dropdown = 0

    How can i do that ?
    --***----------***-----

    If i help you please rate me.

    Working with Excel * Working with String * Working with Database * Working with array *

    K51 ĐH BÁCH KHOA HÀ NỘI - Khoa CNTT pro.

  4. #4
    Lively Member
    Join Date
    Oct 2007
    Location
    Upper Midwest
    Posts
    123

    Re: Edit width or height dropdown of combobox in datagridview

    Why would you want to do something like that? Then the options in the dropdown would not be selectable. What is it that you are trying to accomplish?

  5. #5
    New Member
    Join Date
    May 2011
    Posts
    9

    Re: Edit width or height dropdown of combobox in datagridview

    Hey, i don't know why you would want to set height = 0 cuz then it will just b a textbox in the end.

    However, I am curious to know, how do you set the dropdownheight of a combobox in a datagridview??? i need it to be around 150 cuz or else it will be too long and probably wont fit on most PCs... does anyone know how i can do that???

    theres no option on the GUI but i was thinking maybe through code?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width