Advanced Forum Search Results
-
@yifung : the blank list item is selected by default but as soon as you select another item (one provided by in the ItemsSource) it becomes unavailable. So you have to insert a new instance at the first position of your list before setting the items source.
Concerning the validation : do you consider an alternative to the DataAnnotations ? How ...
-
Brian : I followed Yifung's suggestion, putting the datagrid in a grid (with Grid.Row and Grid.Column) is cleary better than putting it in a StackPanel. Not as fast as a listbox but not so far. I think that mixing StackPanel and DataGrid should be more clearly discouraged.
Maybe it's off topic but I do not understand why SL still does not ...
-
Hi,
It seems the datagrid is very slow to display data, even with a reasonnable amount of lines (50 lines, 5 to 10 columns).
It takes more than one second to display a collection (binded by setting itemsource property), with listbox it only takes 400 to 500 ms. And with 10 years old asp 3 it takes less than 100 ms ;)
Maybe I missed something ...
-
Hi,
I try to display a collection (ObservableCollection) retrieved from the server (webservice) in a datagrid. The display is very slow : 2 seconds to display 100 lines (same problem with a hardcoded collection).
<data:DataGrid x:Name="list" Margin="10" AutoGenerateColumns="False" ...
-
If I display the combobox items count just before setting the DataContext : sometimes I get 0, sometimes I get the real number. And obiviously the right item is selected only when the items list is not empty.
How to be sure that StaticResource ItemSource are loaded before anything else ?
By the way, everything works fine if the StaticResource ...
-
How about
ItemsSource="{Binding Source={StaticResource dataProvider}, Path=ResourceTypes}}" SelectedItem="{Binding Type}" ??
'Binding Type' assumes the datacontext is an instance of Resource. Of course the binding source may be different.
-
" The comboboxes are filled but most of the time the correct company and
country are not selected (sometimes they are). "
When I open the detailed view for a specific contact I expect its country & company to be properly selected in the comboboxes (and I don't want to name them with x:name and explicitly set the selectedItem).
-
Hello,
I try to make a detail view which purpose is to allow user to create/update business data, the xaml form works with wcf remote service.
The ContactDetails.xaml.cs :
public partial class ContactDetailView : UserControl
{
private Action<ContactDetailView> closeAction;
public ContactDetailView ...