C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

How to set Style through Code ???

rated by 0 users
This post has 1 Reply | 0 Followers

Top 100 Contributor
Posts 56
assassin316 Posted: Wed, Jun 17 2009 12:00 PM
How can I set the grid's Style property to TabularHorizontalViewStyle in C# or VB (not in XAML) ???
Top 10 Contributor
Posts 1,090
C1_JohnAd replied on Fri, Jun 26 2009 8:19 AM
Hello,
 
You can use the following code.
 
BEGIN CODE
C1DataGrid1.Style = TryCast(C1DataGrid1.FindResource(New ComponentResourceKey(GetType(C1.WPF.C1DataGrid.C1DataGrid), "TabularHorizontalViewStyle")), Style)

END CODE
 
Hope this helps.

Regards,
John Adams
<assassin316> wrote in message news:219070@10.0.1.98...
How can I set the grid's Style property to TabularHorizontalViewStyle in C# or VB (not in XAML) ???

http://helpcentral.componentone.com/cs/forums/p/79581/219070.aspx#219070

Page 1 of 1 (2 items) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.