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

RadGridViews header CheckBox contant binding error

0 Answers 92 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Govind
Top achievements
Rank 1
Govind asked on 03 Jan 2012, 08:30 AM
Hi,

 I have used RadGridViews(Telerik.Windows.Controls.GridView) in WPF that has some column. The header of column is a CheckBox. Some times header CheckBox content binding is works fine, but when i changed to another form and return back to the same form CheckBox content binding doesn't work ie, its not showing the CheckBox contant.

the code is below
   <telerikGrid:RadGridView >
 <telerikGrid:RadGridView.Columns>                                
                            <telerikGrid:GridViewDataColumn  DataMemberBinding="{Binding Name}" >
                                <telerikGrid:GridViewBoundColumnBase.Header  >
                                    <CheckBox IsChecked="False"  Content="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerikGrid:RadGridView}}, Path=DataContext.HeaderName}" />
                                </telerikGrid:GridViewBoundColumnBase.Header>
                            </telerikGrid:GridViewDataColumn>
</telerikGrid:RadGridView >

its shows some time like this

any solution pls send me, very urgent..

Thanks in advance
Govind

No answers yet. Maybe you can help?

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