in Education by
I am trying to create a combobox in a datagrid. So far I have the two versions of this combobox and neither one works as desired. The following code can save changes in the datagrid but cannot load the value (referred to as V1 later) The following code can load the value but cannot save it (referred to as V2 later) I access the value in the combobox via an event to command function currentCellValue = (((ComboBox)e.EditingElement).SelectedItem); This line works fine on V1 but not V2. So I want to know if there is a way to get 'SelectedItem' information out of a DataGridTemplateColumn (if so how and if not what are the alternatives). Any assistance would be greatly appreciated. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Set the DisplayMemberPath, SelectedValuePath and SelectedValueBinding properties of the column itself:

Related questions

0 votes
    I am trying to create a combobox in a datagrid. So far I have the two versions of this combobox ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 13, 2022 in Education by JackTerrance
0 votes
    Is is possible to change the item selection focus color and text color in a TListBox? When themes are ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jan 15, 2022 in Education by JackTerrance
0 votes
    Is there a way, for the FlipView control, to ONLY have it load the selected item?? The default ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 10, 2022 in Education by JackTerrance
0 votes
    Is there a way, for the FlipView control, to ONLY have it load the selected item?? The default ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 5, 2022 in Education by JackTerrance
0 votes
    I have a ListBox that scrolls images horizontally. I have the following XAML I used blend to create it. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    I tested out the script below in jsfiddle and it works fine, can someone guide me how to fix it? ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    In runtime, I want to retrieve the expire time info about some items in memcached. I didn't find ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 21, 2022 in Education by JackTerrance
0 votes
    I'm trying to recreate the same view as the Carrot Weather Layout modifier, that is a carousel on ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 5, 2022 in Education by JackTerrance
0 votes
    I'm trying to recreate the same view as the Carrot Weather Layout modifier, that is a carousel on ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 2, 2022 in Education by JackTerrance
0 votes
    How to get a particular item in the Model in Django?...
asked Jul 2, 2021 in Technology by JackTerrance
0 votes
    How will you get the min valued item of a list in Python?...
asked Nov 26, 2020 in Technology by JackTerrance
0 votes
    How will you get the max valued item of a list Python?...
asked Nov 26, 2020 in Technology by JackTerrance
0 votes
    to get the number of dimensions of a series object, attribute is displayed 1.index 2.size 3.item size 4.Ndim Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    In [60]: print(row.index) Int64Index([15], dtype='int64') I already know that the row number is ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 12, 2022 in Education by JackTerrance
0 votes
    I have a list: foo= ['q'' , 'w' , 'e' , 'r' , 't' , 'y'] I want to retrieve an item randomly from this list, How can I do it in python? Select the correct answer from above options...
asked Jan 21, 2022 in Education by JackTerrance
...