473,473 Members | 2,164 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

'Rebind' a GridView

Hello,

I have an Asp.Net 2.0 Grid View on a page.
I created the GridView from my ASPX.VB file, i.e., my VB code.

The GridView has 2 TemplateFields. The first TemplateField has a Label
and the second one has an Image.

After the GridView is created I need, when an action on the page is
taken, to change the GridView:

1. Change Header and Footer (I was able to to this)

2. Rebind the GridView to a dataset with changed data.

To do this I create a new DataTable and a new DataSet and bind it to
the GridView:

...

' Create new DataSet
Dim dsInfo As New DataSet
dsInfo.Tables.Add(dtInfo)

' Bind gvInfo
gvInfo.DataSource = dsInfo
gvInfo.DataBind()

I can see that the GridView gets the rows but they are empty.

In my opinion I need to access the already created label and image in
my TemplateFields and bind them to my DataSet fields.

What do you think?
The problem is I don't know how to access them and bind them to the
DataSet fields.

Can someone help me out with this?

Thank You,
Miguel

Feb 17 '06 #1
0 1271

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

Similar topics

1
by: Eugene | last post by:
If I were to upgrade my application development client from V8.1.3 to V8.1.4 but the (remote) database stays at V8.1.3, should I rebind the upgraded client's utilities and CLI using @db2ubind.lst...
1
by: Dale Franklin | last post by:
This should be a rather ROUTINE procedure for you DBAs. I keep hearing at technical conferences and user groups the phrase "then rebind all your plans and packages" (after reorg, load, &...
1
by: Bob Long | last post by:
We are currently on (Solaris) UDB V7 EE with fp7 and want to get to fp 12 or 13. We also have Federated connections to multiple mainframes and data bases at DB2 7.1. Our question, upon...
2
by: SKC | last post by:
Platform : Solaris UDB : version 7.2 FP9 DB2RBIND PACKAGE SCHEMA.PACKAGE fails with SQL0029N error. When I issue, "db2rbind DBNAME all", it is successfull. Can anyone help me understand...
2
by: alex.mcshane | last post by:
Overview There are occasions when UDB Tables will have to be Dropped and Re-Created. For unaltered Stored Procedures, this should not necessitate a Recompile (i.e. Re-Registration) of the SP as...
1
by: H5N1 | last post by:
Hello everybody I'm stuck for a long time with the following problem, so I will be really gratefull if you could help me a bit: I have a GridView nested in DataList (it's located in DataList's...
0
by: Microsoft News Group | last post by:
I have a grid view that adds records in the footer. When I hit the add button to add the fields, the gridview rebinds, but I have a dropdownlist that I would like to also rebind on this with the...
2
by: needin4mation | last post by:
In a GridView, take for example a delete button. When I click the delete button in my GridView the GridView row is deleted and the GridView rebinds and refreshes the records to show accurately. ...
1
by: wardemon | last post by:
Hi, I have an image control which inside an ItemTemplate of a GridView Control. I've coded the ImageControl's ImageURL in "Source" to have a dynamically filled-up value ex: ImageURL = <%#...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.