Click here to Skip to main content
15,912,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My Design part is this

<datagridcomboboxcolumn selectedvaluebinding="{Binding Path=ServiceReqStatusID}" selectedvaluepath="ID" displaymemberpath="Name" header="Status" minwidth="100" itemssource="{Binding Source={StaticResource customerDataProvider1}}">



Back end code is this


CollectionViewSource objStatus = this.FindResource("customerDataProvider1") as CollectionViewSource;

objStatus.Source = serviceRequestManager.getStatusForCombo();[in here load my data]

now i wants a default data to set grid combobox

What I have tried:

C#
My Design part is this

<DataGridComboBoxColumn SelectedValueBinding="{Binding Path=ServiceReqStatusID}"                                            
                                           SelectedValuePath="ID"
                                           DisplayMemberPath="Name"
                                           Header="Status"
                                           MinWidth="100"
                                           ItemsSource="{Binding Source={StaticResource customerDataProvider1}}">
                </DataGridComboBoxColumn>


Back end code is this


  CollectionViewSource objStatus = this.FindResource("customerDataProvider1") as CollectionViewSource;
     
            objStatus.Source = serviceRequestManager.getStatusForCombo();[in here load my data]

now i wants a default data to set grid combobox
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900