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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

combobox column not show blank when first load

Thread ID:





76104 Aug 22,2008 10:15 AM UTC Sep 1,2008 11:41 AM UTC WinForms 1
Tags: GridControl
Sean Schoeman
Asked On August 22, 2008 10:15 AM UTC


I am assigning the datasource to a combobox column at runtime, when the grid loads the combobox column shows all blanks, but you can still access the correct values from the cell.

After i select the value from the combobox it populates the grid correctly.

I basicly just want the combobox column to show the display member of the first item in the combobox once the datasource has been assigned.

I am using version

here is the code i use for the combobox column:

objbc = New Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor

objbc.Appearance.AnyRecordFieldCell.CellType = "ComboBox"
objbc.Appearance.AnyRecordFieldCell.DisplayMember = "sTemplateName"
objbc.Appearance.AnyRecordFieldCell.ValueMember = "sFormula"
objbc.Appearance.AnyRecordFieldCell.DropDownStyle = Syncfusion.Windows.Forms.Grid.GridDropDownStyle.Exclusive
objbc.Appearance.AnyRecordFieldCell.ShowButtons = Syncfusion.Windows.Forms.Grid.GridShowButtons.ShowCurrentCell
objbc.Appearance.AnyRecordFieldCell.DataSource = dt

Any help would be appreciated.

Nirmal Raja [Syncfusion]
Replied On September 1, 2008 11:41 AM UTC

Hi Sean,

Thank you for your interest in Syncfusion product.

The CellType of the cells in a column can be assigned, depending upon the range of the cell, is acheived through GridGroupingControl's QueryCellStyleInfo event.
And the display member can be assigned as soon as the DataSource is loaded, this can be attained using CellValue property of the Style object in the QueryCellStyleInfo event.

Please refer the following sample for futher details:

Let me know if you have any queries.



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