Welcome to the Xceed Community Sign in | Join | Help
Community Search  

How to get the Selected Row, the selected comboboxCell value ?

Sort Posts: Previous Next
  •  09-04-2008, 6:16 AM Post no. 14876

    Crying [:'(] How to get the Selected Row, the selected comboboxCell value ?

    Hi all

    I have a DataGrid with only one column (the cell editor is a combobox ) 

    What I'm trying to achieve is when ever the user change a value in this column (select different value from combo box or just click a row), I get an event with the selected value

    Does anyone know how to get the selected row event?

    question 2:

    I have an insertion row

    <xcdg:TableView> 

       <xcdg:TableView.Footers>

            <DataTemplate>

                   <xcdg:InsertionRow/>

             </DataTemplate>

       </xcdg:TableView.Footers>

    </xcdg:TableView>

     how can I get a new insertion row after I use this one ?

    Thanks for your help.

    Filed under: ,
  •  09-04-2008, 8:54 AM Post no. 14891 in reply to 14876

    Re: How to get the Selected Row, the selected comboboxCell value ?

    You can handle the ComboBox's SelectedValueChanged event, or you can create a value-changed handler for the grid's SelectedItem dependency property.

    As for getting a "new insertion row", once a new item is added, the same insertion row will be reused. There is no need to get a "new" insertion row. 


    Technical Writer - Xceed Software

    Of all the things I've lost, I miss my mind the most. - Mark Twain
  •  09-04-2008, 12:40 PM Post no. 14912 in reply to 14891

    Re: How to get the Selected Row, the selected comboboxCell value ?

    Hi

    thanks for reply

    I use the SelectedItem dependency property and it works fine :)

    but I still have the pb with the new insertion row, I click the last row of my grid (the insertion row) I get the combobox, I choose a value press enter but nothing happing no new insertion row,

    anyone knows how to use this insertion rows Confused

     

  •  09-05-2008, 5:10 PM Post no. 14958 in reply to 14912

    Re: How to get the Selected Row, the selected comboboxCell value ?

    Are you certain that you source supports having new items added to it and/or that it provides change notifications (e.g., INotifyCollectionChanged)?
    Technical Writer - Xceed Software

    Of all the things I've lost, I miss my mind the most. - Mark Twain
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.