By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,677 Members | 1,174 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,677 IT Pros & Developers. It's quick & easy.

grid.databind in vb.net 2005 beta2

P: n/a
I try tu polulate grid and I using vb.net 2005 beta2.
The code is the same :
sql = "SELECT * FROM albi where RIFAnno= " & RIFAnno
If conn.State = Data.ConnectionState.Closed Then conn.Open()
cmd1 = conn.CreateCommand
cmd1.CommandText = sql
rd1 = cmd1.ExecuteReader()
gridAlbo.DataSource = rd1
gridAlbo.databind()
^
|
--------------------

but vs 2005 beta2 give me error in gridAlbo.databind()
DATABIND IS NOT A METHOD
ANY IDEA
thanks
fabio

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Do you even have to use DataBind() in windows Forms... to bind to a
datagrid.. you do not in 2003 or are you talking about ASP:NET

/Lars

"neodev" <ne****@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
I try tu polulate grid and I using vb.net 2005 beta2.
The code is the same :
sql = "SELECT * FROM albi where RIFAnno= " & RIFAnno
If conn.State = Data.ConnectionState.Closed Then conn.Open()
cmd1 = conn.CreateCommand
cmd1.CommandText = sql
rd1 = cmd1.ExecuteReader()
gridAlbo.DataSource = rd1
gridAlbo.databind()
^
|
--------------------

but vs 2005 beta2 give me error in gridAlbo.databind()
DATABIND IS NOT A METHOD
ANY IDEA
thanks
fabio

Nov 21 '05 #2

P: n/a
i use vb.net 2005 beta2

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.