Deprecation of DataMemberBinding property on GridViewColumn

2 posts, 0 answers
  1. Adam
    Adam avatar
    4 posts
    Member since:
    Mar 2011

    Posted 07 Feb 2013 Link to this post

    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?
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 08 Feb 2013 Link to this post

    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.

Back to Top