Skip to main content

Answered Question DataGrid - Styles/ TemplatesRSS Feed

(0)

pmalik
pmalik

Member

Member

0 points

3 Posts

DataGrid - Styles/ Templates

I have a couple of questions regarding the Silverlight Beta 2 DataGrid control -

1. How can you get rid of the vertical grid lines in the headers? The GridlinesVisibility and VerticalGridlinesBrush properties don't seem to have any effect on the headers.

2. Is there a way to change the style of the current and selected rows? These are shown with a default light blue gradient.

Thanks in advance.

- pmalik

texmex5
texmex5

Contributor

Contributor

2239 points

382 Posts

Answered Question

Re: DataGrid - Styles/ Templates

 To get rid of the header grid lines you have to alter the template (http://msdn.microsoft.com/en-us/library/cc278066(VS.95).aspx).

I found some samples

http://blogs.msdn.com/scmorris/archive/2008/03/21/using-the-silverlight-datagrid.aspx

 http://silverlight.net/forums/t/14849.aspx
 

pmalik
pmalik

Member

Member

0 points

3 Posts

Re: Re: DataGrid - Styles/ Templates

Thanks, texmex5. This solves my first issue. Do you know if the style/ template of the current/ selected row (with the default light blue gradient) can be modified?

Jim Mangaly
Jim Mangaly

Contributor

Contributor

2634 points

382 Posts

Re: Re: DataGrid - Styles/ Templates

pmalik:
Thanks, texmex5. This solves my first issue. Do you know if the style/ template of the current/ selected row (with the default light blue gradient) can be modified?

See my reply here: http://silverlight.net/forums/p/18761/64044.aspx#64044

Jim (http://jimmangaly.blogspot.com/)

Please MARK the replies as answers if they answered your question

http://www.identitymine.com/
  • Unanswered Question
  • Answered Question
  • Announcement