Rounded DataGridRowsPresenter

Nov 24, 2008 at 11:02 PM
hi.
I'm trying to style the DataGrid so that the DataGridRowsPresenter has the rounded corners. I want that the headers have their own rounded panel and the same for the Items container that, staying to what is written here (http://blogs.msdn.com/vinsibal/archive/2008/08/14/wpf-datagrid-dissecting-the-visual-layout.aspx) should be the DataGridRowsPresenter.

Are there any way to do this? how?? :-)

thanks
emanuele

Nov 25, 2008 at 8:24 AM
Hi,

Yes - all of this is possible. However, you are probably going to have to make changes to the various control templates for the component parts of the DataGrid. Have you done this sort of thing before?

I have an example - although not with rounded borders! - here:

http://www.codeproject.com/KB/WPF/WPFDataGridExamples.aspx#fun

Colin E.


Nov 25, 2008 at 8:39 PM
Hi Colin.
Thanks for the link. I use it as a starting point and I build my grid with rounded corners :-)

bye