Click here to Skip to main content
15,919,931 members
Home / Discussions / C#
   

C#

 
QuestionOpen Folder Pin
Rahul.RK2-Nov-06 18:07
Rahul.RK2-Nov-06 18:07 
AnswerRe: Open Folder Pin
alexey N2-Nov-06 18:15
alexey N2-Nov-06 18:15 
GeneralRe: Open Folder Pin
Rahul.RK2-Nov-06 18:21
Rahul.RK2-Nov-06 18:21 
GeneralRe: Open Folder Pin
alexey N2-Nov-06 18:31
alexey N2-Nov-06 18:31 
GeneralRe: Open Folder Pin
Rahul.RK2-Nov-06 18:41
Rahul.RK2-Nov-06 18:41 
QuestionSpecify comboboxcolumn for bound datatable column Pin
drinkingbird2-Nov-06 16:35
drinkingbird2-Nov-06 16:35 
AnswerRe: Specify comboboxcolumn for bound datatable column Pin
Xint02-Nov-06 16:44
Xint02-Nov-06 16:44 
GeneralRe: Specify comboboxcolumn for bound datatable column [modified] Pin
drinkingbird2-Nov-06 17:22
drinkingbird2-Nov-06 17:22 
The table is dynamically generated, so not really accessible to the designer.

I'm not sure how I'd use the BindingSource alternative. Is there a good tutorial or some such on how I might do this?

Thanks.


-- modified at 23:57 Thursday 2nd November, 2006

Maybe I should be more specific.

I have a table of employees, and a table of shifts available to work.

There is a table which links the 2 via foreign keys to represent a many-to-many relationship.

For easier editing, I create a custom datatable at runtime, where each column represents one of the shifts, and there is one column for specifying the employee's ID.

I would like the employee ID column to be a combobox column with the combobox values taken from the employee table (ValueMember = id, DisplayMember = name).

Currently, after creating the custom table, I assign it as the datasource of a datagridview, but the default situation is that the column is simply displayed as a textboxcolumn.

Is there a way (outside of the designer), to easily do this (I'm still looking into the bindingsource option)?

Any help would be appreciated, this has really got me stumped.
GeneralUpdate: Got it Pin
drinkingbird2-Nov-06 18:34
drinkingbird2-Nov-06 18:34 
QuestionAnchor, Dock, FlowLayoutPanel, Panel, When to use and how!? Pin
shultas2-Nov-06 14:09
shultas2-Nov-06 14:09 
AnswerRe: Anchor, Dock, FlowLayoutPanel, Panel, When to use and how!? Pin
Judah Gabriel Himango2-Nov-06 15:40
sponsorJudah Gabriel Himango2-Nov-06 15:40 
QuestionFill a pictureBox with linear gradient Pin
elsombreron2-Nov-06 13:49
elsombreron2-Nov-06 13:49 
AnswerRe: Fill a pictureBox with linear gradient Pin
Judah Gabriel Himango2-Nov-06 15:36
sponsorJudah Gabriel Himango2-Nov-06 15:36 
AnswerRe: Fill a pictureBox with linear gradient Pin
Alex@UEA2-Nov-06 21:10
Alex@UEA2-Nov-06 21:10 
QuestionWindows Forms Problem Closing From One To Another Pin
Veldor2-Nov-06 13:07
Veldor2-Nov-06 13:07 
AnswerRe: Windows Forms Problem Closing From One To Another Pin
Pradeep C2-Nov-06 13:32
Pradeep C2-Nov-06 13:32 
GeneralRe: Windows Forms Problem Closing From One To Another Pin
Veldor2-Nov-06 13:45
Veldor2-Nov-06 13:45 
GeneralRe: Windows Forms Problem Closing From One To Another Pin
sam#2-Nov-06 17:28
sam#2-Nov-06 17:28 
GeneralRe: Windows Forms Problem Closing From One To Another Pin
Veldor2-Nov-06 20:07
Veldor2-Nov-06 20:07 
QuestionParse a property dynamic Pin
Storme2-Nov-06 10:59
Storme2-Nov-06 10:59 
AnswerRe: Parse a property dynamic Pin
Judah Gabriel Himango2-Nov-06 11:15
sponsorJudah Gabriel Himango2-Nov-06 11:15 
GeneralRe: Parse a property dynamic Pin
Storme2-Nov-06 13:06
Storme2-Nov-06 13:06 
GeneralRe: Parse a property dynamic [modified] Pin
aamironline2-Nov-06 18:45
aamironline2-Nov-06 18:45 
QuestionList property for a custom control, doesn't work in design time Pin
warnov2-Nov-06 9:25
warnov2-Nov-06 9:25 
QuestionWeird ListViewItem ForeColor change Pin
kozu2-Nov-06 9:19
kozu2-Nov-06 9:19 

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.