Advanced Forum Search Results
-
If you bind your DataGrid to a PagedCollectionView (PCV), you could specify the SortDescriptions on PCV and DataGrid will honor them.
Gunjan [MSFT]
-
You could have cells word wrap the content as an alternative. Look up this thread for an example.
Gunjan [MSFT]
-
You are right this won't be possible with PagedCollectionView.
Gunjan [MSFT]
-
This was a breaking change since SL3 Beta. You can use this property on PagedCollectionView (instead of DataGrid) with SL3:
using System.ComponentModel;
using System.Windows.Data;
PagedCollectionView pcv=new PagedCollectionView(myDataSource);
pcv.SortDescriptions.Add(new SortDescription("MyProperty", ...
-
I would suggest housing your usercontrol in a Silverlight 3 Beta Control: ChildWindow and launching it whenever a user selects your usercontrol, with this you get the control in a seperate window in the foreground while your old layout stays unaffected in the background.
Gunjan [MSFT]
-
Hi if you are using Silverlight 3 Beta, you can use the GroupDescriptions property on DataGrid to achieve grouping. Following should help:
dataGrid.GroupDescriptions.Add(new PropertyGroupDescription("Machine"));
With this, you get your DataGrid rows grouped under the field/column Machine along with the count of number of rows within ...
-
DataGridTextColumn currently doesn't support TextWrapping. You could use a TextBlock in a DataGridTemplateColumn instead to achieve this:
<data:DataGridTemplateColumn MinWidth="200" MaxWidth="400" ...
-
If you use Silverlight 3 Beta, you could use SortDescriptions property on DataGrid to do this:
using System.ComponentModel;
dataGrid.SortDescriptions.Add(new SortDescription("myProperty", ListSortDirection.Descending));
You can have multiple SortDescriptions and DataGrid will sort the columns in the order in which they appear in the ...
-
You need to use myDGItems[ i ] instead of myDGItems. Sorry about the light bulb confusion
Gunjan[MSFT]
-
Absolutely. Look up this page for more info.
Gunjan [MSFT]