Click here to Skip to main content
15,892,059 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: INSERT INTO Query with apostrophes in filenames? Pin
Dave Kreskowiak1-Oct-07 5:48
mveDave Kreskowiak1-Oct-07 5:48 
AnswerRe: INSERT INTO Query with apostrophes in filenames? Pin
Guffa1-Oct-07 6:32
Guffa1-Oct-07 6:32 
GeneralRe: INSERT INTO Query with apostrophes in filenames? Pin
eyeball_20031-Oct-07 7:16
eyeball_20031-Oct-07 7:16 
AnswerRe: INSERT INTO Query with apostrophes in filenames? Pin
mmelick1-Oct-07 10:34
mmelick1-Oct-07 10:34 
Questiondatagridview ? Pin
moomoooomoo1-Oct-07 3:47
moomoooomoo1-Oct-07 3:47 
AnswerRe: datagridview ? Pin
Dave Kreskowiak1-Oct-07 4:10
mveDave Kreskowiak1-Oct-07 4:10 
GeneralRe: datagridview ? Pin
moomoooomoo1-Oct-07 4:21
moomoooomoo1-Oct-07 4:21 
GeneralRe: datagridview ? Pin
Dave Kreskowiak1-Oct-07 5:46
mveDave Kreskowiak1-Oct-07 5:46 
Create a second DataTable object with the ID's and Data of the items that are going to appear in the ComboBoxColumn. Then create a new DataGridViewComboBoxColumn and bind it to this table.
' Retrieve the data for the combobox
Dim DataForCombo As DataTable = SQLStuff.GetDate()

' Create a new ComboBox column
Dim col As New DataGridViewComboBoxColumn
With col
    .HeaderText = "Column Header in DGV"
    .DataPropertyName = "ID column name in the table the DGV is showing"
    .DataSource = DataForCombo
    .ValueMember = "ID column name in DataForCombo table"
    .DisplayMember = "Column name for the data shown to the user in the ComboBox"
End With
DataGridView1.Columns.Add(col)



A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


QuestionCurrent user input language Pin
Proqrammer1-Oct-07 3:15
Proqrammer1-Oct-07 3:15 
AnswerRe: Current user input language Pin
Gary Bigman1-Oct-07 5:14
Gary Bigman1-Oct-07 5:14 
QuestionCommunication between dlls Pin
Jens Johanneson1-Oct-07 2:58
Jens Johanneson1-Oct-07 2:58 
AnswerRe: Communication between dlls Pin
Dave Kreskowiak1-Oct-07 4:07
mveDave Kreskowiak1-Oct-07 4:07 
GeneralRe: Communication between dlls Pin
Jens Johanneson1-Oct-07 7:14
Jens Johanneson1-Oct-07 7:14 
GeneralRe: Communication between dlls Pin
Dave Kreskowiak1-Oct-07 12:00
mveDave Kreskowiak1-Oct-07 12:00 
QuestionResizing a form to suit the resolution Pin
Mr Oizo1-Oct-07 1:23
Mr Oizo1-Oct-07 1:23 
AnswerRe: Resizing a form to suit the resolution Pin
Christian Graus1-Oct-07 1:30
protectorChristian Graus1-Oct-07 1:30 
GeneralRe: Resizing a form to suit the resolution Pin
Mr Oizo1-Oct-07 5:16
Mr Oizo1-Oct-07 5:16 
GeneralRe: Resizing a form to suit the resolution Pin
Christian Graus1-Oct-07 11:04
protectorChristian Graus1-Oct-07 11:04 
GeneralRe: Resizing a form to suit the resolution Pin
Mr Oizo2-Oct-07 11:22
Mr Oizo2-Oct-07 11:22 
Questionhow to clear an array? Pin
moomoooomoo1-Oct-07 1:12
moomoooomoo1-Oct-07 1:12 
AnswerRe: how to clear an array? Pin
Luc Pattyn1-Oct-07 1:27
sitebuilderLuc Pattyn1-Oct-07 1:27 
AnswerRe: how to clear an array? Pin
Gary Bigman1-Oct-07 4:24
Gary Bigman1-Oct-07 4:24 
Questionstring function Pin
moomoooomoo1-Oct-07 0:56
moomoooomoo1-Oct-07 0:56 
AnswerRe: string function Pin
Tamimi - Code1-Oct-07 1:00
Tamimi - Code1-Oct-07 1:00 
GeneralRe: string function Pin
moomoooomoo1-Oct-07 1:04
moomoooomoo1-Oct-07 1:04 

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.