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
close icon

How to set Grid Control columns As a Combobox

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 

1 Reply

AG Anish George Syncfusion Team 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.




Live Chat Icon For mobile
Up arrow icon