Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
170
Is there something like a SelectedItem Property?
posted

Hi

I'm looking for a way to bind the selected Item to an Object. E.g.

<xamDataGrid ItemSource="{Binding Path=ListOfCars}" SelectedItem="{Binding Path=SelectedCar}".

Thanks

PS: I had only found ActiveRecords, which would need a Converter, but what I'm looking for is a simple and direct binding possibility (WPF like)

Parents
  • 69686
    Suggested Answer
    posted

    Hello,

    The XamDataGrid does not expose an ItemSource property. You can bind it through the DataSource property or add objects in the DataItems collection. The XamDataGrid can also have only one active record at a time.

    I am not sure why you need a converter for the ActiveRecord? Are you attempting to do something like this, described in this forum thread:

    http://community.infragistics.com/forums/p/5351/180140.aspx#180140

    If this is the case, you can see, that in the next Service Release, a new property just for this will be exposed.

Reply Children