grid.databind in vb.net 2005 beta2

  • Thread starter Thread starter neodev
  • Start date Start date
N

neodev

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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top