Click here to Skip to main content
15,887,822 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to add wpf button to wpf datagridcomboboxcolumn. How can I do this? Please help me.
Posted
Updated 13-Jan-12 0:06am
v2

1 solution

Your best bet would be to use a DataGridTemplate column and create your own DataTemplate like this:-
XML
<DataGridTemplateColumn Header="Combo Style">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <ComboBox />
                                <Button />
                            </StackPanel>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
 
Share this answer
 

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