How to change the style of a datagrid dynamicly?
Last post 05-06-2008 5:12 AM by abhilash_latheesh. 3 replies.
Sort Posts:
05-05-2008 11:27 PM
How to change the style of a datagrid dynamicly?

I am designing a datagrid and need to change its skin dynamicly. I try to reset its style, rowstyle and headerstyle. At first, it's no problem to initialize the styles, but if reset the styles, an exception will go out. Can't reset them in SL?

 thanks for any help or suggestion....

ahlcm

Joined on 05-06-2008
Posts 4
05-05-2008 11:35 PM
Marked as Answer
Re: How to change the style of a datagrid dynamicly?

ahlcm:
I am designing a datagrid and need to change its skin dynamicly. I try to reset its style, rowstyle and headerstyle. At first, it's no problem to initialize the styles, but if reset the styles, an exception will go out. Can't reset them in SL?
 

Unfortunately, Styles in Silverlight 2 beta 1 are write-once. So, you won't be able to reset or change the style once you have set. I know it's not good..

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Best Regards,
Michael Sync

Blog : http://michaelsync.net
Feed : http://michaelsync.net/feed

mchlSync

Joined on 09-16-2005
Singapore
Posts 2,021
05-06-2008 12:54 AM
Re: How to change the style of a datagrid dynamicly?

oh, I have to research other ways....anyway, thanks for your info.

ahlcm

Joined on 05-06-2008
Posts 4
05-06-2008 5:12 AM
Re: How to change the style of a datagrid dynamicly?

 Hi,

There is no possible way to change style dynamically

Regards,

Abhilash

abhilash_latheesh

Joined on 04-02-2008
Posts 36