Silverlight 3 Datagrid: Template rows container

Is it possible to template the container for datagrid rows so that they can wrap horizontally? eg in the ItemsControl you can simply change the ItemsPanel to use a WrapPanel.

I can't use a ItemsControl because I want to use the Grouping support in the DataGrid when bound to a DomainDataSource.


The answer is a simple: No.

The DataGrid requires that the DataGridRowsPresenter primitive control be used to present the rows. This handles the layout of both the Rows and the Group header rows. It does not support any styling that would change the way it lays these controls out.

You can't replace the DataGridRowsPresenter with a different control, code internal to the DataGrid class assume that there is a control in its template with the name "RowsPresenter" that can directly cast to the type DataGridRowsPresenter.

Need Your Help

Defining Constants in Django

python django constants

I want to have some constants in a Django Projects. For example, let's say a constant called MIN_TIME_TEST.

Git through SSH using port 443 in Windows with SourceTree client

git ssh atlassian-sourcetree

I'm trying to connect to a BitBucket Git account using SSH at work. The network admin has blocked the 22 port (used by default for SSH) so I'm trying to connect using port 443 (the https port).