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

Cannot find TopComponent with preferredID

java user-interface netbeans

I'm trying to run my simple java-program, but have a big problem.

How to organize a pool of non thread-safe resources in Cilk Plus (one resource per worker)?

c++ multithreading parallel-processing cilk cilk-plus

I have a serial code that I would like to parallelize using Cilk Plus; the main loop calls a processing function repeatedly on different sets of data, so the iterations are independent of each other,