This question is locked. New answers and comments are not allowed.
We're using a DomainService for our Silverlight business application, and bind the respective Itemsource of our
datagrids to the <riaControls:DomainDataSource> queries or trough LoadOperation for the DomainContext. That works fine..
Now in the datagrid, we define our collumns (autogeneratecolumns = false). And use DataBinding to bind to the right part of the entities
(In this example i just left 1 column, we have more of course..)
<grid:RadGridView.Columns>
<grid:GridViewDataColumn Header="Begindatum" DisplayIndex="2" DataMemberBinding="{Binding BeginDate, Mode=TwoWay}" DataFormatString="{}{0:d}" />
</grid:RadGridView.Columns>
Now when a new item is added trough the 'ShowInsertRow' bar.. we would like to change the default value of it. So the date will be 01-01-2000, for example instead of 01-01-0001
in case of binding with a ComboboxColumn
<grid:GridViewComboBoxColumn DisplayIndex="2" Header="Part" ItemsSource="{Binding Data, Source={StaticResource ddsParts},Mode=TwoWay}" DataMemberBinding="{Binding Mode=TwoWay, Path=Part_PartID, NotifyOnValidationError=True}" DisplayMemberPath="Omschrijving" SelectedValueMemberPath="PartID" />
We would also like to be able to make a predefined selection.
Can you please help us with this?
Kind regards,
Milco
datagrids to the <riaControls:DomainDataSource> queries or trough LoadOperation for the DomainContext. That works fine..
Now in the datagrid, we define our collumns (autogeneratecolumns = false). And use DataBinding to bind to the right part of the entities
(In this example i just left 1 column, we have more of course..)
<grid:RadGridView.Columns>
<grid:GridViewDataColumn Header="Begindatum" DisplayIndex="2" DataMemberBinding="{Binding BeginDate, Mode=TwoWay}" DataFormatString="{}{0:d}" />
</grid:RadGridView.Columns>
Now when a new item is added trough the 'ShowInsertRow' bar.. we would like to change the default value of it. So the date will be 01-01-2000, for example instead of 01-01-0001
in case of binding with a ComboboxColumn
<grid:GridViewComboBoxColumn DisplayIndex="2" Header="Part" ItemsSource="{Binding Data, Source={StaticResource ddsParts},Mode=TwoWay}" DataMemberBinding="{Binding Mode=TwoWay, Path=Part_PartID, NotifyOnValidationError=True}" DisplayMemberPath="Omschrijving" SelectedValueMemberPath="PartID" />
We would also like to be able to make a predefined selection.
Can you please help us with this?
Kind regards,
Milco