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.
Unfortunately, activation email could not send to your email. Please try again.

Changing CellType Using QueryCellInfo

Thread ID:

Created:

Updated:

Platform:

Replies:

26696 Mar 30,2005 06:55 AM Mar 30,2005 10:03 AM Windows Forms 2
loading
Tags: GridControl
Bassam El-Shafie
Asked On March 30, 2005 06:55 AM

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 3.0.1.0

Administrator [Syncfusion]
Replied On March 30, 2005 09:05 AM

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 10:03 AM

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

CONFIRMATION

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.

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.

;