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

GetBindingExpression always returns null

0 Answers 335 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 13 Sep 2012, 05:44 PM
I have a column

       <telerik:GridViewDataColumn

                    UniqueName="CarrierCommission"

                                  DataFormatString="c"

                                  IsVisible="{Binding Path=SearchCriteria, Converter={StaticResource CarrierColumnConverter}}"

                                  Header="{StaticResource CarrierCommission}"

                                  DataMemberBinding="{Binding Path=CarrierRepCommission}"

                                  Width="{StaticResource CommissionColumnWidth}">

        </telerik:GridViewDataColumn>

I would like to programmatically refresh the IsVisible property by calling UpdateTarget on the IsVisible binding expression.  However, it seems that no matter when I call

 

Dim exp As BindingExpression = column.GetBindingExpression(Telerik.Windows.Controls.GridViewDataColumn.IsVisibleProperty)


I always get null for the value of exp.  When is it safe to call GetBindingExpression or is there another way to refresh the binding.

Thanks,

No answers yet. Maybe you can help?

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