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

comboboxes with databound grid

Thread ID:





11896 Mar 17,2004 05:47 PM UTC Mar 18,2004 05:44 PM UTC WinForms 2
Tags: GridControl
Terry Thompson
Asked On March 17, 2004 05:47 PM UTC

I am developing an application using the batabound grid. How can I make a single cell in a column a combobox? The issue is that the entries in my "Value" column represent different types of data. Some of them need to be picked from a list. Any ideas? Any help would be greatly appreciated since this thing is due this week.

Administrator [Syncfusion]
Replied On March 17, 2004 07:32 PM UTC

Try handling the QueryCellInfo event. (It is a member of grid.Model). In the handler, if e.ColIndex and e.RowIndex point to your cell, then set e.Style.DataSource, e.Style.DisplayMember, e.Style.ValueMember and e.Style.CellType to reflect the combobox you want to see in that single cell.

Terry Thompson
Replied On March 18, 2004 05:44 PM UTC

That did it. Thanks


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