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

Change cell type of a single cell in GridDataBoundGrid

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.

5 Replies

JJ Jisha Joy Syncfusion Team 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



AL Andrew Lien 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.


JJ Jisha Joy Syncfusion Team 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


AL Andrew Lien March 19, 2010 02:31 PM UTC

I got everything to work. Thank you.


JJ Jisha Joy Syncfusion Team March 22, 2010 07:19 AM UTC

Hi Andrew,

Thank you for your update.

Regards,
Jisha

Loader.
Live Chat Icon For mobile
Up arrow icon