PC Review


Reply
Thread Tools Rate Thread

Change width of dropdown in EditControlShowing event

 
 
MS
Guest
Posts: n/a
 
      13th Mar 2010

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



 
Reply With Quote
 
 
 
 
Mike Lovell
Guest
Posts: n/a
 
      13th Mar 2010
> 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.

--
Mike
GoTinker, C# Blog
http://www.gotinker.com

 
Reply With Quote
 
MS
Guest
Posts: n/a
 
      15th Mar 2010
Hi Mike,

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

Thanks



"Mike Lovell" wrote:

> > 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.
>
> --
> Mike
> GoTinker, C# Blog
> http://www.gotinker.com
>
> .
>

 
Reply With Quote
 
MS
Guest
Posts: n/a
 
      15th Mar 2010
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

"MS" wrote:

>
> 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
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dropdown Width aftamath77 Microsoft Excel Misc 3 6th Oct 2008 06:23 PM
DropDown Change Event & Macro Frank Hayes Microsoft Excel Programming 2 19th Mar 2007 03:42 AM
DropDown Width Samuel Shulman Microsoft ASP .NET 1 13th Dec 2006 08:32 PM
UDF, Change Event and Dropdown boxes =?Utf-8?B?TWFydGlu?= Microsoft Excel Programming 7 6th Jun 2005 06:26 PM
Fix the width of a dropdown list? Jeffrey Microsoft ASP .NET 1 22nd Dec 2003 07:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:32 AM.