Datagrid combobox.. problem

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!!
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top