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.

Grid, ReadOnly

Thread ID:

Created:

Updated:

Platform:

Replies:

97582 Dec 14,2010 05:37 AM Dec 15,2010 10:58 PM Windows Forms 3
loading
Tags: GridControl
asdf
Asked On December 14, 2010 05:37 AM

hi,

why doesn't the color of the cell don't change???
or better, why have the line "grid[2, col].ReadOnly = false;" no effect?
here the code sample.

grid[2, col].ReadOnly = false;
MessageBoxAdv.Show(this,"" + grid[2, col].ReadOnly);
grid[2, col].BackColor = color;

the message box show me that the ReadOnly variable is still true. why??? what do i wrong?

thx & regards,
ladida


Jisha Joy [Syncfusion]
Replied On December 15, 2010 01:00 AM

Hi Ladida,

Please try the following code and let me know if this helps.

this.gridControl1.IgnoreReadOnly = true;
this.gridControl1[2, 2].BackColor = Color.Red;
this.gridControl1.IgnoreReadOnly = false;


Regards,
Jisha


asdf
Replied On December 15, 2010 07:52 AM

hi,

yes, it helps.

ty


Nirmal Raja [Syncfusion]
Replied On December 15, 2010 10:58 PM

Hi Ladida,

Thank you for the update.

Regards,
Nirmal


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.

;