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

Deprecation of DataMemberBinding property on GridViewColumn

1 Answer 75 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 07 Feb 2013, 06:44 PM
I am attempting to update some code that was written against a Telerik release from 2011 to our latest version released recently.  I was searching for documentation on the deprecation of the DataMemberBinding property but I couldn't find anything.

radGridView.DistinctValuesLoading += (s, e) =>
  {
      MyType myParameter = e.Column.DataMemberBinding.ConverterParameter as MyType;
      if (myParameter != null) _viewModel.CurrentConverterParameterType = myParameter;
  };

The issue is that in the 2011 release, DataMemberBinding was a property exposed on the GridViewColumn, but in the 2012 release, it is not.  Is there an alternate way to access the Binding for the column in the event handler like this?

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 08 Feb 2013, 07:32 AM
Hello,

 Generally DataMemberBinding is a property of GridViewDataColumn since the very beginning. You can cast e.Column to GridViewDataColumn and you can access this property. 

Greetings,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Adam
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or