Hello,
I would like for the vertical scrollbar in a GridControl ComboBox cell to have the same theme(Office2007, Office2010, Metro etc) as the underlying GridControl. However, the scrollbar for the ComboBox cell just seems to be a standard gray scroll bar.
Could you please let me know how I can achieve this?
Thanks,
Taylour
using System.Linq;
using System.Windows.Forms;
using Syncfusion.Windows.Forms;
using Syncfusion.Windows.Forms.Grid;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
var gridControl = new GridControl();
gridControl.HScrollPixel = true;
gridControl.VScrollPixel = true;
gridControl.RowCount = 20;
gridControl.ColCount = 10;
gridControl.Dock = DockStyle.Fill;
gridControl.GridVisualStyles = GridVisualStyles.Office2007Blue;
gridControl.ColorStyles = ColorStyles.Office2007Blue;
gridControl.GridOfficeScrollBars = OfficeScrollBars.Office2007;
gridControl.Office2007ScrollBarsColorScheme = Office2007ColorScheme.Blue;
gridControl.Office2007ScrollBars = true;
gridControl.ThemesEnabled = true;
gridControl[1, 1].CellType = GridCellTypeName.ComboBox;
gridControl[1, 1].DataSource = Enumerable.Range(1, 20).ToList();
Controls.Add(gridControl);
}
}