We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Right-allign the scrollbar in a combobox

Thread ID:





5372 Jul 1,2003 09:47 AM UTC Jul 1,2003 10:26 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On July 1, 2003 09:47 AM UTC

Is it possible to right-allign the vertical scrollbar and have the items is a combobox right-alligned at the same time? I've tried the following: private void CurrentCellShowingDropDown(object sender, GridCurrentCellShowingDropDownEventArgs e) { GridCurrentCell cc = slotsGridControl.CurrentCell; GridComboBoxCellRenderer cr = cc.Renderer as GridComboBoxCellRenderer; if(cr != null) { cr.ListBoxPart.RightToLeft = RightToLeft.Yes; } } Here my items are right-alligned, but my scrollbar shown on the left-hand side...

Administrator [Syncfusion]
Replied On July 1, 2003 10:26 AM UTC

If you use RTL with the standard Windows Forms controls like the ListBox which what the dropdown is, then you get the scrollbar on the left. Another possible solution would be to use a GridListControl in a dropdown cell. Then you could handle the QueryCellInfo event of the embedded grid and set the Horizontal alignment there. Attached is a sample that does this in Form_Load. If you have several GridListControl cells using different datasources, you could use the CurrentCellShowingDropDown and CurrentCellCloseDropDown to dynamically hook and unhook the particular eventhandlers you need to control the looks for each of the different datasources.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon