473,382 Members | 1,332 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

grid.databind in vb.net 2005 beta2

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
2 1772
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
i use vb.net 2005 beta2

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: pmud | last post by:
Hi, I need to display columns in a data grid based on 7 different queries. Now I have 32 questions: 1. Is it possble to have 1 single data adapter with 7 queries & 1 data set or do I need to...
12
by: pmud | last post by:
Hi, I am using teh following code for sorting the data grid but it doesnt work. I have set the auto generate columns to false. & set the sort expression for each field as the anme of that...
12
by: Jim H | last post by:
We ahve a .NET web page that we dynamically create a bunch of DataGrids and add them to a place holder. When the user hits submit we need to go through all of the DataGrids to get some data. We...
3
by: BobAtUnisys | last post by:
After uninstalling Visual Studio 2005 Beta2, installing Visual Studio 2005 RC1, uninstalling RC1 and reinstalling Beta2 I am getting the following error: When I try and create a class I get a...
1
by: Steve | last post by:
Hi I have a db with 2 tables that I want to bind to a grid depending on a selection in a Dropdownlist Also I want to be able to select a row from the gris to fill some textboxes. The databases...
4
by: Girish | last post by:
Im trying to create a grid within a grid programmatically. Ive been successful in doing this but I need the embedded grid to fire its ItemDataBound event so I can handle it. The event does not seem...
2
by: rjack | last post by:
I'm using VS 2005 Beta 2. In VS 2003, the Page directive in an aspx page has Language and CodeBehind attributes. You can have the language be different than the code behind file language. For...
0
by: Mart | last post by:
Hi, I have just written (my first) VB.net app using MS Visual Basic 2005 Express Edition Beta. It is fairly simple, it reads some configuration data from an XML file then opens a new window...
1
by: Mattias | last post by:
Hi I have The new Visual Studio 2005 Professional installed, I have created a vb project as windows application and receive a perculiar error when trying to open the Form designer. "Microsoft...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.