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

Changing CellType Using QueryCellInfo

Thread ID:





26696 Mar 30,2005 11:55 AM UTC Mar 30,2005 03:03 PM UTC WinForms 2
Tags: GridControl
Bassam El-Shafie
Asked On March 30, 2005 11:55 AM UTC

I am trying to change the CellType to "ComboBox" and DisplayMember, ValueMember using GridBoundGrid.Model.QueryCellInfo Event. The Code in the Event just run once (depending on a bool value) If RunOnce Then ''Change to ComboBox The problem is when the Cell activate it return to its previous style (The ComboBox arrow disappear) I am trying to change a single cell to ComboBox depending on another cell value Using Essential Suite

Administrator [Syncfusion]
Replied On March 30, 2005 02:05 PM UTC

You cannot run code once in QueryCellInfo and change a cell type. The code must be run every time through QueryCellInfo in order for the change to take effect. (Doing something in QueryCellInfo does not ''store'' the change anywhere. It has to be constantly reset every time QuerycellInfo is called.) Try removing your ''one-time check" code, and just let the code be hit all the time to see if this handles the problem you are seeing.

Bassam El-Shafie
Replied On March 30, 2005 03:03 PM UTC

Ok I got the point although not my needs, I will try the spaghetti ways :) Thanks for the reply. Regards, Bassam


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

or the page will be automatically redirected to 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