Click here to Skip to main content
15,889,651 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: I think I got it Pin
jkirkerx23-Oct-14 10:27
professionaljkirkerx23-Oct-14 10:27 
GeneralRe: I think I got it Pin
Dave Kreskowiak23-Oct-14 15:06
mveDave Kreskowiak23-Oct-14 15:06 
GeneralRe: I think I got it Pin
Richard Deeming24-Oct-14 1:37
mveRichard Deeming24-Oct-14 1:37 
GeneralRe: I think I got it Pin
jkirkerx24-Oct-14 6:23
professionaljkirkerx24-Oct-14 6:23 
GeneralRe: I think I got it Pin
Richard Deeming24-Oct-14 6:37
mveRichard Deeming24-Oct-14 6:37 
GeneralRe: I think I got it Pin
jkirkerx24-Oct-14 6:39
professionaljkirkerx24-Oct-14 6:39 
GeneralRe: I think I got it Pin
jkirkerx24-Oct-14 6:42
professionaljkirkerx24-Oct-14 6:42 
QuestionHow to Populate DataGridViewComboBox with a DataTable Pin
Benniiit22-Oct-14 3:36
Benniiit22-Oct-14 3:36 
Please I have DatagridView bound to a DataTable that pulls records and displays the DataGridView correctly. Now, I have ColumnType as DataGridViewComboBoxColumn of the forth column named "Username". When I click the combo box of the DataGridview, nothing gets displayed at all. I just don't understand it. Below is the code.

<pre lang="vb">

'Objects already initialized

Dim QueryU As String = "select * from Users where username='" & frmUsers.txtUsername.Text & "'"
Dim daUser As New SqlDataAdapter(QueryU, SQLCon)
Dim dtUser As New DataTable
daUser.Fill(dtUser)
If dtUser.Rows.Count > 0 Then

Dim c4 As New DataGridViewComboBoxColumn()

c4.HeaderText = "Send To"
c4.Name = "Username"
c4.DataPropertyName = "Username"
c4.DisplayMember = "Username"
c4.ValueMember = "Username"
c4.DisplayStyleForCurrentCellOnly = False
c4.DisplayStyle = DataGridViewComboBoxDisplayStyle.Nothing
c4.FlatStyle = FlatStyle.Popup
c4.SortMode = DataGridViewColumnSortMode.Automatic
c4.DataSource = dtUser
c4.Width = 300
frmUsers.DataGridView1.Columns.Add(c4)

Catch
End Try
End If






</pre>
SuggestionRe: How to Populate DataGridViewComboBox with a DataTable Pin
Richard Deeming22-Oct-14 4:32
mveRichard Deeming22-Oct-14 4:32 
QuestionlistItem to show text box Pin
byka20-Oct-14 7:04
byka20-Oct-14 7:04 
GeneralSort methodes idees wanted Pin
JR21220-Oct-14 1:09
JR21220-Oct-14 1:09 
GeneralRe: Sort methodes idees wanted Pin
Richard Deeming20-Oct-14 1:58
mveRichard Deeming20-Oct-14 1:58 
GeneralRe: Sort methodes idees wanted Pin
Eddy Vluggen20-Oct-14 1:59
professionalEddy Vluggen20-Oct-14 1:59 
AnswerRe: Sort methodes idees wanted Pin
Manfred Rudolf Bihy20-Oct-14 2:24
professionalManfred Rudolf Bihy20-Oct-14 2:24 
GeneralRe: Sort methodes idees wanted Pin
JR21221-Oct-14 0:29
JR21221-Oct-14 0:29 
GeneralRe: Sort methodes idees wanted Pin
Manfred Rudolf Bihy21-Oct-14 0:52
professionalManfred Rudolf Bihy21-Oct-14 0:52 
QuestionHelp needed creating a form based on a vbscript Pin
Malbordio19-Oct-14 6:25
Malbordio19-Oct-14 6:25 
AnswerRe: Help needed creating a form based on a vbscript Pin
Dave Kreskowiak23-Oct-14 10:00
mveDave Kreskowiak23-Oct-14 10:00 
Questionhow to open password protected .pdf file in vb 6.0 Pin
kirtitripathy17-Oct-14 21:25
kirtitripathy17-Oct-14 21:25 
AnswerRe: how to open password protected .pdf file in vb 6.0 Pin
Dave Kreskowiak18-Oct-14 4:34
mveDave Kreskowiak18-Oct-14 4:34 
QuestionHow to search in a List (of structure) Pin
dilkonika14-Oct-14 4:52
dilkonika14-Oct-14 4:52 
AnswerRe: How to search in a List (of structure) Pin
Eddy Vluggen14-Oct-14 5:39
professionalEddy Vluggen14-Oct-14 5:39 
QuestionVBScript Connect to Database across Internet Pin
JM7613-Oct-14 4:22
JM7613-Oct-14 4:22 
AnswerRe: VBScript Connect to Database across Internet Pin
Eddy Vluggen13-Oct-14 7:34
professionalEddy Vluggen13-Oct-14 7:34 
GeneralRe: VBScript Connect to Database across Internet Pin
JM7613-Oct-14 7:39
JM7613-Oct-14 7:39 

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.