TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
mohamad guntur
NA
40
40.5k
Overload resolution data adapter?
Nov 20 2012 3:29 AM
My code works fine with another form, but not this form..
anyway, i used the same code to retrieve ada from database
Public Sub GetData()
If Not con.State = ConnectionState.Open Then
con.Open()
End If
Dim da As New SqlDataAdapter("SELECT * FROM EMPLOYEE", con)
Dim dt As New DataTable
da.Fill(dt)
Me.dgvKY.DataSource = dt
con.Close()
End Sub
I found this error caught:
Error
1
Overload resolution failed because no accessible 'New' can be called without a narrowing conversion:
'Public Sub New(selectCommandText As String, selectConnection As System.Data.SqlClient.SqlConnection)': Argument matching parameter 'selectConnection' narrows from 'Object' to 'System.Data.SqlClient.SqlConnection'.
'Public Sub New(selectCommandText As String, selectConnectionString As String)': Argument matching parameter 'selectConnectionString' narrows from 'Object' to 'String'.
i used to follow this step, n everything is fine
http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.aspx
please help :((
Reply
Answers (
0
)
what is WCF
Delegate method of Nsxml Parser?