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.

GridControl, ReadOnly

Thread ID:

Created:

Updated:

Platform:

Replies:

97372 Nov 22,2010 09:00 AM Dec 20,2010 01:39 AM WPF 3
loading
Tags: GridControl
asdf
Asked On November 22, 2010 09:00 AM

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


Karthick Ravichandran [Syncfusion]
Replied On November 27, 2010 02:12 AM

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



asdf
Replied On November 29, 2010 05:38 AM

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


Jisha Joy [Syncfusion]
Replied On December 20, 2010 01:39 AM

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


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.

;