Click here to Skip to main content
15,894,343 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: unbound datagrid Pin
mr.me18-Mar-08 9:37
mr.me18-Mar-08 9:37 
GeneralRe: unbound datagrid Pin
Rocky#18-Mar-08 20:12
Rocky#18-Mar-08 20:12 
GeneralRe: unbound datagrid Pin
mr.me19-Mar-08 6:48
mr.me19-Mar-08 6:48 
Generalcrystal report Pin
Naresh12345678915-Mar-08 3:21
Naresh12345678915-Mar-08 3:21 
GeneralRe: crystal report Pin
Herman<T>.Instance1-Apr-08 23:43
Herman<T>.Instance1-Apr-08 23:43 
GeneralDatagridview Refresh Control Problem Pin
soniasan14-Mar-08 22:37
soniasan14-Mar-08 22:37 
GeneralRe: Datagridview Refresh Control Problem Pin
Herman<T>.Instance1-Apr-08 23:47
Herman<T>.Instance1-Apr-08 23:47 
GeneralProblem with DataGridViewComboBoxColumn - try to disable/hide already selected values [modified] Pin
Skeletor2314-Mar-08 11:43
Skeletor2314-Mar-08 11:43 
I need some help with a Problem in a DataGridView.

I have a DataGridViewComboBoxColumn bound to a list of Strings to select from.
If I select one of this items, it should be removed from the other cells dropdown
lists (in the same ComboBoxColumn). So that only the not selected Items are available to choose from.
(If I simply shorten the bounded list, I get a "DataGridView ComboBox Cell Value not valid" error.)

This sounds very easy, but in fact I spended several hours and could not solve this simple
task so far!
Can anybody help me?
Thanks!


Update:
I also tried to use a Datatable as Datasource, but when I remove an Item from the Datasource it has also the effect that it disappears from the cell it was formerly selected.

Update2:
Ok, I just tried it again and got a working solution myself.
Instead of binding the whole ComboboxColumn to a DataSource, I bind every cell for itself to a Datasource( or list). I use the CellBeginEdit event to Update the cells DataSource with the available Items.
This seems to work well Smile | :)

modified on Saturday, March 15, 2008 4:29 AM

GeneralStrange Error on Data Bound ComboBox Pin
Brady Kelly13-Mar-08 7:43
Brady Kelly13-Mar-08 7:43 
GeneralRe: Strange Error on Data Bound ComboBox Pin
led mike14-Mar-08 4:58
led mike14-Mar-08 4:58 
GeneralRe: Strange Error on Data Bound ComboBox Pin
Brady Kelly16-Mar-08 22:27
Brady Kelly16-Mar-08 22:27 
GeneralRe: Strange Error on Data Bound ComboBox Pin
ChandraRam17-Mar-08 0:37
ChandraRam17-Mar-08 0:37 
GeneralRe: Strange Error on Data Bound ComboBox Pin
Brady Kelly17-Mar-08 1:36
Brady Kelly17-Mar-08 1:36 
QuestionAlpha-Blending controls Pin
Zerox MXI12-Mar-08 23:43
Zerox MXI12-Mar-08 23:43 
GeneralRe: Alpha-Blending controls Pin
Martin#13-Mar-08 1:18
Martin#13-Mar-08 1:18 
QuestionHow to create Dynamic table? Pin
Guru_yogi12-Mar-08 20:42
Guru_yogi12-Mar-08 20:42 
AnswerRe: How to create Dynamic table? Pin
John_Adams12-Mar-08 21:53
John_Adams12-Mar-08 21:53 
GeneralSeeking directions for building own custom controls and about UI programming Pin
Zerox MXI12-Mar-08 15:17
Zerox MXI12-Mar-08 15:17 
GeneralRe: Seeking directions for building own custom controls and about UI programming Pin
led mike13-Mar-08 4:22
led mike13-Mar-08 4:22 
GeneralSend Page by email ( in the right forum now i hope ) :) Pin
cechode12-Mar-08 11:30
cechode12-Mar-08 11:30 
GeneralRe: Send Page by email ( in the right forum now i hope ) :) Pin
led mike13-Mar-08 4:26
led mike13-Mar-08 4:26 
GeneralRe: Send Page by email ( in the right forum now i hope ) :) Pin
cechode13-Mar-08 5:37
cechode13-Mar-08 5:37 
GeneralRe: Send Page by email ( in the right forum now i hope ) :) Pin
led mike13-Mar-08 6:03
led mike13-Mar-08 6:03 
GeneralNewbie trying to get a grasp Pin
Aazzin12-Mar-08 3:10
Aazzin12-Mar-08 3:10 
GeneralRe: Newbie trying to get a grasp Pin
James J. Foster12-Mar-08 11:58
James J. Foster12-Mar-08 11:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.