Datagrid combobox.. problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I need to to have a combobox column on the grid.
The problem is when the user selects a value from the combo , when the user
clicks the combo in another row i need to remove the previously selected
value from the combo list. So the user has only the left available values to
be selected.
I added an event in the DataGridComboBoxColumn that when user enters
combobox an event is raised and in this event i am removing the items.
In the DataGridComboBoxColumn class i have added a function which removes
the item. And i call this function in the comboentered event i had
subscribed...it works.i am able to remove item..but after removing the
item..the previous row which i had selected the item.that column displays
blank.
anyone faced such a problem..
please help!!
 
never mind..
solved it..

In GetColumnValueAtRow (in comboBoxcolumn class)
if the value is not found in the combobox's list..
and if the item is removed initially..
i am returning the value got by base.GetColumnValueAtRow
 
Back
Top