dataridviewcomboboxcolumn / combobox hiding items

R

RS

I have a datagridviewcomboboxcolumn bound to a Funding source table in
database. With time these funding sources may be inactiveted (inactive
flag is set in the table). So when you open up a new form, or an old
form, the original selection should apper, but the user should be
selecting only the active items from the drop-down list, if he choose
to change the funding source, otherwise leave it.
If I populate the combobox with active items only, I get an error
'Invalid value', so I have to pull everything in the combobox. So how
can we prevent user from viewing/selecting items that have inactive
flag set? Thank you.
 

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

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,835
Latest member
lila30

Latest Threads

Top