Click here to Skip to main content
16,005,038 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Help! Pin
ShayanTanwir19-Feb-09 5:58
ShayanTanwir19-Feb-09 5:58 
GeneralRe: Help! Pin
riced19-Feb-09 6:09
riced19-Feb-09 6:09 
AnswerRe: Help! Pin
riced19-Feb-09 5:50
riced19-Feb-09 5:50 
QuestionSQL server 2005 Pin
Kanyungu19-Feb-09 4:07
Kanyungu19-Feb-09 4:07 
AnswerRe: SQL server 2005 Pin
Dave Kreskowiak19-Feb-09 4:35
mveDave Kreskowiak19-Feb-09 4:35 
AnswerRe: SQL server 2005 Pin
Jon_Boy19-Feb-09 5:29
Jon_Boy19-Feb-09 5:29 
QuestionProblem with data display using Datagridview Pin
drexler_kk19-Feb-09 4:00
drexler_kk19-Feb-09 4:00 
AnswerRe: Problem with data display using Datagridview Pin
Dave Kreskowiak19-Feb-09 4:30
mveDave Kreskowiak19-Feb-09 4:30 
Your code makes no sense in certain sections.

SQL = "SELECT Comp_Code,Comp_Name FROM company_detail WHERE Comp_Name LIKE '" & x & "%'"
    ObjComm = New MySqlCommand(SQL, ObjMyConn)
    ObjMyConn.Open()
    ObjRead = ObjComm.ExecuteReader
    If ObjRead.Read Then
        ObjRead.Close()
        DataGridView1.DataSource = Nothing

You open a reader on a returned set, but if there is a result, you close the read immediately?? Then execute the same SQL to fill a dataset?? That's completely unnecessary. Just execute a fill on the DataSet, then bind the DataGridView to it. There's no need to check if something came back first.


A guide to posting questions on CodeProject[^]



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




QuestionRe: Problem with data display using Datagridview Pin
drexler_kk19-Feb-09 5:17
drexler_kk19-Feb-09 5:17 
AnswerRe: Problem with data display using Datagridview Pin
Dave Kreskowiak19-Feb-09 5:25
mveDave Kreskowiak19-Feb-09 5:25 
AnswerRe: Problem with data display using Datagridview Pin
Jon_Boy19-Feb-09 5:27
Jon_Boy19-Feb-09 5:27 
GeneralRe: Problem with data display using Datagridview Pin
drexler_kk19-Feb-09 13:25
drexler_kk19-Feb-09 13:25 
QuestionHow to resize tablelayoutpanel dynamically Pin
dilipmca0419-Feb-09 2:49
dilipmca0419-Feb-09 2:49 
AnswerRe: How to resize tablelayoutpanel dynamically Pin
Dave Kreskowiak19-Feb-09 4:17
mveDave Kreskowiak19-Feb-09 4:17 
QuestionUSB RESET Pin
siddaraju19-Feb-09 2:15
siddaraju19-Feb-09 2:15 
AnswerRe: USB RESET Pin
Dave Kreskowiak19-Feb-09 3:50
mveDave Kreskowiak19-Feb-09 3:50 
GeneralRe: USB RESET Pin
Luc Pattyn19-Feb-09 5:17
sitebuilderLuc Pattyn19-Feb-09 5:17 
GeneralRe: USB RESET Pin
EliottA19-Feb-09 7:11
EliottA19-Feb-09 7:11 
GeneralRe: USB RESET Pin
Luc Pattyn19-Feb-09 7:55
sitebuilderLuc Pattyn19-Feb-09 7:55 
AnswerRe: USB RESET Pin
siddaraju19-Feb-09 18:06
siddaraju19-Feb-09 18:06 
GeneralRe: USB RESET Pin
Bharat Jain20-Feb-09 0:04
Bharat Jain20-Feb-09 0:04 
QuestionHow can I change the bakcground color of a subitem in listview (after) adding the items? Pin
JUNEYT19-Feb-09 1:56
JUNEYT19-Feb-09 1:56 
AnswerRe: How can I change the bakcground color of a subitem in listview (after) adding the items? Pin
Dave Kreskowiak19-Feb-09 4:14
mveDave Kreskowiak19-Feb-09 4:14 
QuestionInsert into multiple tables via dataset Pin
waner michaud19-Feb-09 1:51
waner michaud19-Feb-09 1:51 
AnswerRe: Insert into multiple tables via dataset Pin
Dave Kreskowiak19-Feb-09 3:58
mveDave Kreskowiak19-Feb-09 3: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.