Gridview Source bindin property

3 posts, 0 answers
  1. Pierre
    Pierre avatar
    212 posts
    Member since:
    Apr 2007

    Posted 16 Jun 2011 Link to this post

    Hi, I try to bing a property to the GridView.Source like this:
    Binding bind = new Binding(Binding);
    bind.Mode = BindingMode.TwoWay;
    GridView.SetBinding(RadGridView., bind);

    to do programatically this Xaml code:
    ItemsSource="{Binding PagedSource, ElementName=radDataPager1}"

    I can't found the property ItemSource in the RadGridView code behind.

    And whats about this xmal property:
    SelectedItem="{Binding RechResultatSelection, Mode=TwoWay}"
  2. Pierre
    Pierre avatar
    212 posts
    Member since:
    Apr 2007

    Posted 16 Jun 2011 Link to this post

    I can't add the dynamically created RadGridView into a stackpanel like this:
    StackPanelRetour.Children.Add(GridView);
    I go this error:
    Error    3    Argument 1: cannot convert from 'Telerik.Windows.Controls.RadGridView' to 'System.Windows.UIElement' 

    Do i use the wrong object?
  3. DevCraft banner
  4. Pierre
    Pierre avatar
    212 posts
    Member since:
    Apr 2007

    Posted 16 Jun 2011 Link to this post

    Ok I found it.
    I forgot to add the Telerik.Windows.Data reference to my projet.
    Now all working good.
Back to Top