Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Combobox items populate from dataset in datagrid columtemplate

$
0
0

Hi

I have added 2 dataset to datasource with tables  tblEmployee and tblEmployeeName. I have created datagrid from tblEmployee table and I have in datagrid combobox where I would like to show employee name list from tblEmployeeName table.

<DataGridTemplateColumn x:Name="employeeColumn" Header="Employee" Width="SizeToHeader" >
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <ComboBox >
                                <ComboBoxItem/>
                            </ComboBox>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>

How I can show list in combobox and also bind to tblEmployee table.

Please help.

Thank you

Luke


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>