Grid columns divider
-
Thursday, August 02, 2012 8:42 PM
Hi all,
With the Cosmopolitan theme, my grids show without a vertical line between columns, a divider, or separator.
I was playing with the "Pixata vertical divider" for this, inserting one after each grid column/field, set to light-gray color. And I have to say I like the result so far.
Any easier way to do this instead of using the Pixata vertical divider? Get the grid columns divider by default?
Rgds.
All Replies
-
Thursday, August 02, 2012 9:15 PM
Hi Lisalena
I think according to the design principle of the cosmopolitan theme, there is no built in vertical line divider for the default grid. If you use lightswitch default shell and theme then you can able to find out what you want.
So as per my suggestion it will be better if you use your own custom silverlight grid control and integrate into lightswitch. Where you can do anything as per your requirement.
Regards
Rashmi Ranjan Panigrahi
www.lightswitchspecial.com
If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”.
This will help other users to find their answer quickly. -
Thursday, August 02, 2012 11:48 PM
Hi Lisa,
In the InitializeDataWorkspace method for your screen, you can use this code to enable Vertical grid lines:
this.FindControl("grid").ControlAvailable += (s, e) => { (e.Control as System.Windows.Controls.DataGrid).GridLinesVisibility = System.Windows.Controls.DataGridGridLinesVisibility.Vertical; };
My Blog: dotnetlore.com Twitter: @DotNetLore
- Proposed As Answer by Yann DuranModerator Friday, August 03, 2012 1:10 AM
- Marked As Answer by Lisalena Friday, August 03, 2012 5:52 PM
-
Friday, August 03, 2012 1:10 AMModerator
Yes, that's the better suggestion Jewel. There's no need for a custom control for just gridlines.
All the Cosmopolitan theme is doing is modifying the grid properties through a theme, whereas Jewel's suggesting doing it in code.
If you didn't want to do it in code, you'd create a theme based on the Cosmpopolitan theme, not create a custom grid control.
Yann - LightSwitch Central - Click here for FREE Themes, Controls, Types and Commands If you find a reply helpful, please click "Vote as Helpful", if a reply answers your question, please click "Mark as Answer" By doing this you'll help people find answers faster. -
Friday, August 03, 2012 5:51 PM
Just arrived, had no time to test yet but will do so in the first opportunity tonight!
Jewel, once again, thanks for sharing! pure awesomeness :)
thanks all!

