Change width of dropdown in EditControlShowing event

M

MS

Hi,

I have a datagridview with few combobox columns. Comboboxcolumns are bound
to datatable. In EditControl showing event I change the style to Dropdown to
allow for typing. The width of ComboBox that appears on clicking the cell is
smaller than the column size. How can I change the width of EditingControl. I
tried changing the width and dropdown Width of comobox but it's not changing.

Also, I see two dropdown when I click on dropdown arrrow of ComboBox in a
grid cell and I when I start to type I see another one that is shown over the
first one.
How can I have only one dropdown showing?

Any help would be great.

Thanks
 
M

Mike Lovell

I have a datagridview with few combobox columns. Comboboxcolumns are bound
to datatable. In EditControl showing event I change the style to Dropdown
to
allow for typing. The width of ComboBox that appears on clicking the cell
is
smaller than the column size. How can I change the width of
EditingControl. I
tried changing the width and dropdown Width of comobox but it's not
changing.

Also, I see two dropdown when I click on dropdown arrrow of ComboBox in a
grid cell and I when I start to type I see another one that is shown over
the
first one.
How can I have only one dropdown showing?

Could you post a demo someone else could run to see the problem?

That would greatly speed up your amount of responses, and how quickly the
problem gets solved.
 
M

MS

Hi Mike,

Thanks for the response. Is it possible to send you the project via email
attachment?

Thanks
 
M

MS

Hi Mike,

What I am trying to do is allow user to type in combobox cell from within
datagridview cell and have the ability to show a filtered data in drop down
list as they type in. Any suggestion on how to implement filter as they type
in will be helpful

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top