Windows Develop Bookmark and Share   
 index > Windows Forms General > C# horizontal scroll in DataGridViewComboBoxCell Column
 

C# horizontal scroll in DataGridViewComboBoxCell Column

Hi,

Please help me in finding out the solution on how to implement the horizontal scroll in DataGridViewComboBoxCell Column.

when values are loadedin DataGridView the DataGridViewComboBoxCell column is filled withlongnames. Can we somehowhave horizontal scroll down?

Please help asap !

Kind Regards

usman mudasser  Friday, November 02, 2007 10:25 AM

Hi Mudasser,

Based on your post, you want to create a DataGridViewComboBoxColumn with a horizontal scrollbar, don’t you? If so, you need to create your own combo box with the horizontal scrollbar. You can check this article. It has provided you how to give ComboBox a horizontal scrollbar. Then you need to host this ComboBox to your DataGridView cell. About how to host control in DataGridView cells, please check this page on MSDN.

· http://msdn2.microsoft.com/en-us/library/7tas5c80.aspx

Hope this helps.
Best regards.
Rong-Chun Zhang

Rong-Chun Zhang  Wednesday, November 07, 2007 12:46 PM

Hi all,

I am sorry for posting this trouble shooting question here but i am inurgentvery urgentneed of solution for the problem.

I need to know whether is it possible to have horizontal scrollbar in datagridviewcomboboxcell and if yes then how ? Please if possible a code snippet

Very Kind Regards

Usman Mudasser

usman mudasser  Monday, November 05, 2007 6:06 AM

Hi all,

I am sorry for posting this trouble shooting question here but i am inurgentvery urgentneed of solution for the problem.

I need to know whether is it possible to have horizontal scrollbar in datagridviewcomboboxcell and if yes then how ? Please if possible a code snippet

Very Kind Regards

Usman Mudasser

usman mudasser  Monday, November 05, 2007 6:12 AM

Hi Mudasser,

Based on your post, you want to create a DataGridViewComboBoxColumn with a horizontal scrollbar, don’t you? If so, you need to create your own combo box with the horizontal scrollbar. You can check this article. It has provided you how to give ComboBox a horizontal scrollbar. Then you need to host this ComboBox to your DataGridView cell. About how to host control in DataGridView cells, please check this page on MSDN.

· http://msdn2.microsoft.com/en-us/library/7tas5c80.aspx

Hope this helps.
Best regards.
Rong-Chun Zhang

Rong-Chun Zhang  Wednesday, November 07, 2007 12:46 PM

Many Thanks toyou for replying it helped me a lot .

usman mudasser  Monday, December 10, 2007 9:27 AM

You can use google to search for other answers

Custom Search

More Threads

• Dynamically adding Template field to GridView vb.net
• Get Unique ID from Computer
• How to set owner of a form to a form in a different process
• STA and threadpool problem
• Populating a textbox on one form from another form
• problem with mirrored listview
• â€œVerified by Providerâ€?security tool
• Implementing Keyboard support in windows forms
• Tracking movement of a foreign window
• Save the form as a record in the table - Nice challenge for me