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.
Syncfusion Feedback

Change cell type of a single cell in GridDataBoundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

93140 Feb 25,2010 05:56 PM UTC Mar 22,2010 07:19 AM UTC Windows Forms 5
loading
Tags: GridControl
Andrew Lien
Asked On February 25, 2010 05:56 PM UTC

Hello,

I am working with a GridDataBoundGrid and there are cells that I want to change the style of depending on the value of another cell in the same row. For example, change from a combobox to a textbox. How can I accomplish this?

Thanks.

Jisha Joy [Syncfusion]
Replied On February 26, 2010 10:55 AM UTC

Hi Andrew,

You could handle QueryCellStyleIno and check for the cell value of the specific cell and change the value of another row in the same row.

Please let me know if this helps.

Regards,
Jisha


Andrew Lien
Replied On March 15, 2010 03:09 PM UTC

Thank you for the quick response.

I have been looking for a way to raise the event you mentioned in GridDataBoundGrid, but I have not been able to find it. How would I do this?

Thanks.

Jisha Joy [Syncfusion]
Replied On March 16, 2010 12:05 PM UTC

Hi Andrew,


You could access it using the Model property in GridDataBoundGrid.

this.gridDataBoundGrid1.Model.QueryCellInfo

Regards,
Jisha

Andrew Lien
Replied On March 19, 2010 02:31 PM UTC

I got everything to work. Thank you.

Jisha Joy [Syncfusion]
Replied On March 22, 2010 07:19 AM UTC

Hi Andrew,

Thank you for your update.

Regards,
Jisha

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.

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

;