Click here to Skip to main content
15,887,175 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to populate data in combobox gridview in VB.net? Pin
Richard MacCutchan25-May-16 21:03
mveRichard MacCutchan25-May-16 21:03 
GeneralRe: How to populate data in combobox gridview in VB.net? Pin
kishore-20165-Jun-16 10:20
kishore-20165-Jun-16 10:20 
GeneralRe: How to populate data in combobox gridview in VB.net? Pin
Richard MacCutchan5-Jun-16 21:24
mveRichard MacCutchan5-Jun-16 21:24 
QuestionDGV with multiple Tables Pin
Raabi Anony23-May-16 17:41
Raabi Anony23-May-16 17:41 
AnswerRe: DGV with multiple Tables Pin
Mycroft Holmes23-May-16 19:53
professionalMycroft Holmes23-May-16 19:53 
SuggestionRe: DGV with multiple Tables Pin
Richard Deeming24-May-16 1:34
mveRichard Deeming24-May-16 1:34 
GeneralRe: DGV with multiple Tables Pin
Mycroft Holmes24-May-16 12:38
professionalMycroft Holmes24-May-16 12:38 
AnswerRe: DGV with multiple Tables Pin
Richard Deeming24-May-16 1:41
mveRichard Deeming24-May-16 1:41 
What DBMS are you using? Your query looks like a Microsoft SQL Server query, but you're trying to use the MySQL classes to execute it.

If your database is MS SQL Server, use the classes from the System.Data.SqlClient namespace:
VB.NET
Using con = New SqlConnection(My.Settings.SqlServerConnectionString)
    Using da = New SqlDataAdapter(sqlSelect, con)
        da.Fill(table)
        Return table
    End Using
End Using


If your database is MySQL, you'll need to install Connector/Net[^], add a reference to it from your project, and add Imports MySql.Data.MySqlClient at the top of your code file.

NB: The *DataAdapter classes will open and close the connection for you. There's no need to call con.Open() before you call da.Fill(...).



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: DGV with multiple Tables Pin
Raabi Anony24-May-16 16:06
Raabi Anony24-May-16 16:06 
GeneralRe: DGV with multiple Tables Pin
Raabi Anony25-May-16 0:41
Raabi Anony25-May-16 0:41 
GeneralRe: DGV with multiple Tables Pin
Richard Deeming25-May-16 0:55
mveRichard Deeming25-May-16 0:55 
QuestionString or Binary Data Would be Truncated. The Statement has been Terminated Pin
kishore-201622-May-16 7:35
kishore-201622-May-16 7:35 
AnswerRe: String or Binary Data Would be Truncated. The Statement has been Terminated Pin
Sascha Lefèvre22-May-16 12:19
professionalSascha Lefèvre22-May-16 12:19 
QuestionRe: String or Binary Data Would be Truncated. The Statement has been Terminated Pin
Richard MacCutchan22-May-16 21:05
mveRichard MacCutchan22-May-16 21:05 
SuggestionRe: String or Binary Data Would be Truncated. The Statement has been Terminated Pin
Richard Deeming23-May-16 1:52
mveRichard Deeming23-May-16 1:52 
AnswerRe: String or Binary Data Would be Truncated. The Statement has been Terminated Pin
Member 1256155913-Jun-16 5:23
Member 1256155913-Jun-16 5:23 
QuestionHow we can retrieve Gridvalue Pin
MANISHA SONAWANE19-May-16 20:05
MANISHA SONAWANE19-May-16 20:05 
SuggestionRe: How we can retrieve Gridvalue Pin
Richard MacCutchan19-May-16 21:27
mveRichard MacCutchan19-May-16 21:27 
GeneralRe: How we can retrieve Gridvalue Pin
MANISHA SONAWANE19-May-16 22:06
MANISHA SONAWANE19-May-16 22:06 
QuestionRe: How we can retrieve Gridvalue Pin
Richard MacCutchan19-May-16 22:17
mveRichard MacCutchan19-May-16 22:17 
AnswerRe: How we can retrieve Gridvalue Pin
MANISHA SONAWANE19-May-16 23:02
MANISHA SONAWANE19-May-16 23:02 
QuestionRe: How we can retrieve Gridvalue Pin
Richard MacCutchan20-May-16 1:43
mveRichard MacCutchan20-May-16 1:43 
GeneralRe: How we can retrieve Gridvalue Pin
Eddy Vluggen20-May-16 2:53
professionalEddy Vluggen20-May-16 2:53 
QuestionError in MsHflexGrid for rowcolchange event Pin
srikrishnathanthri19-May-16 0:52
srikrishnathanthri19-May-16 0:52 
AnswerRe: Error in MsHflexGrid for rowcolchange event Pin
Eddy Vluggen19-May-16 4:35
professionalEddy Vluggen19-May-16 4:35 

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.