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

How to set Grid Control columns As a Combobox

Thread ID:





116262 May 5,2014 11:10 AM UTC May 12,2014 08:38 AM UTC WinForms 1
Tags: GridControl
Asked On May 5, 2014 11:10 AM UTC

Hi Viewers,

Here i am trying to set grid control column as a Combo box  like this Cell Type =Combo box, but its acting as that particular  individual cell Act as Combo box but not all the Columns 

Anish George [Syncfusion]
Replied On May 12, 2014 08:38 AM UTC

Hi Venkaiah,


Thank you for your interest in Syncfusion products.



Assign Combobox for a whole column

We suggest you to use the QueryCellStyleInfo event for achieving this scenario. QueryCellInfo is the workhorse event. It is used to provide the GridStyleInfo object for a given cell. In your handler for this event, you would normally set the CellValue or CellType for the GridStyleInfo object passed in with the event arguments.  Please refer the below code snippet.



this.gridControl1.QueryCellInfo += new GridQueryCellInfoEventHandler(gridControl1_QueryCellInfo);

void gridControl1_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)


if (e.ColIndex == 2 && e.RowIndex != 0)


e.Style.CellType = GridCellTypeName.ComboBox;




To know more details regarding the QueryCellInfo event you can refer the below UG link.







Please let us know if you need any further assistance.





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