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
close icon

GridControl, ReadOnly

hi,

why doesn't the color of the cell don't change???
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?

regards,
ladida


3 Replies

KR Karthick Ravichandran Syncfusion Team November 27, 2010 07:12 AM UTC

Hi Ladida,

Thanks for choosing Syncfusion Products.

You can achieve your requirement by setting Background property as like below,

[Sample code]
[C#]
datagrid.Model[3, i].Background = Brushes.Red;
datagrid.Model[5, i].Background = Brushes.Orange;
datagrid.Model[7, i].Background = Brushes.PaleGreen;

We could not reproduce the issue with read only property. Please find the sample that we used to test. Can you please share the sample that reproducing this issue with us, this will be much helpful for us to server you.

Sample Location: http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=WpfApplication1-860584033.zip

Please let us know if you have any questions.

Thanks,
Karthick




AS asdf November 29, 2010 10:38 AM UTC

i dont see a property Background in Model. the reason could be, i use version 8.1.03 of syncfusion.

but so i have the next question. where is a good api documentary for syncfusion?

regards,
ladida



JJ Jisha Joy Syncfusion Team December 20, 2010 06:39 AM UTC

Hi Ladida,

Please refer the following forum link for your query about setting the backcolor.


http://www.syncfusion.com/support/forums/grid-windows/97582/Grid,-ReadOnly

Please refer to the online documentation from the following link,

http://help.syncfusion.com/ug_84/Common/Common/index.htm


Regards,
Jisha


Loader.
Live Chat Icon For mobile
Up arrow icon