This is a migrated thread and some comments may be shown as answers.

Custom controls and data binding problem

0 Answers 57 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Raman
Top achievements
Rank 1
Raman asked on 26 Sep 2012, 11:14 AM
Hi
I have a Radgrid that one column is a button. I make it in xaml. but when i bind a query to datagrid like: radGridTest.ItemsSource = query; data does not appear but when i bind it to a simple radgrid (which has no button column) every thing goes fine. the way i make the button column is here:
...
                   <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate >
                            <StackPanel Orientation="Horizontal">
                                <Button Width="25" Height="25" Background="Red"/>
                            </StackPanel>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
...

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Raman
Top achievements
Rank 1
Share this question
or