Advanced Forum Search Results
-
In the template you can do something like this:
<TextBlock Text="{Binding Name}" />
Here are the docs on CollectionViewGroup:
http://msdn.microsoft.com/en-us/library/system.windows.data.collectionviewgroup_members(VS.95).aspx
-
NWA, what are you trying to do after setting the ItemsSource?
-
It looks like there indeed is an issue with setting templates in the DG along with using toolkit themes. This will likely be fixed in SL 4.
-
Did you DataBind or set the ItemsSource of the AutoCompleteBox?
-
If you re-template the DataGridRow, you can also binding the background to your view model using a converter that returns a brush when given a value.
-
You copied System.Windows.Controls.dll from the sdk folder to another folder? Did you copy the other dlls also?
-
Leave the CellTemplate a TextBlock but add a CellEditingTemplate that has a TextBox
-
If you set the DataGrid's ItemsSource to null, and then update the items, you shouldn't see any cross thread exceptions. Is that what you're seeing?
If you want to keep the items bound to the DataGrid while you're updating them in a background thread, you'd have to not raise any PropertyChanged notifications for the ...
-
Yes, the behavior is by design.
-
Yes, the DataGrid by default changes Bindings to be TwoWay. If you don't want to edit you can set IsReadOnly to true for particular columns or the entire DataGrid