Hi,
I have a Status field in the GanttView Grid, the status is binded to a Status Description that is coming back from a View, there is dropdown that is set to the StatusId for the SelectedValue, the ItemsSource is a StatusList that is populated in the code behind and the DisplayMemberPath and SelectedValuePath are set to the correct fields from the StatusList, all this is set in the CellEditTemplate.
The problem is when I double click the cell, the dropdown value is never set to the value of the StatusId, is always blank, if I pick another value from the dropdown, the StatusID field is updated and this is correct, but, like I said it before, it doesn't set value when is first displayed, unless I set the DisplayMemberPath and SelectedValuePath to the Text fields and those match the value on the cell (meaning the description field), then it works properly, but the problem with this is that the selected value may not be a unique one and I can't know which value the user selected.
Is there anyway to get this to work? Is there any way to set the dropdown selected value on the code in the Editing event?
thanks in advance for your help
I have a Status field in the GanttView Grid, the status is binded to a Status Description that is coming back from a View, there is dropdown that is set to the StatusId for the SelectedValue, the ItemsSource is a StatusList that is populated in the code behind and the DisplayMemberPath and SelectedValuePath are set to the correct fields from the StatusList, all this is set in the CellEditTemplate.
The problem is when I double click the cell, the dropdown value is never set to the value of the StatusId, is always blank, if I pick another value from the dropdown, the StatusID field is updated and this is correct, but, like I said it before, it doesn't set value when is first displayed, unless I set the DisplayMemberPath and SelectedValuePath to the Text fields and those match the value on the cell (meaning the description field), then it works properly, but the problem with this is that the selected value may not be a unique one and I can't know which value the user selected.
Is there anyway to get this to work? Is there any way to set the dropdown selected value on the code in the Editing event?
thanks in advance for your help