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.
Problem:
I have a GridView that has a select. This select gives a FormView
control the data to open. I set the GridView visible to false. I have
only my FormView open. This FormView is used to edit, have other
DetailsViews that open etc.
On my FormView, when I click delete (the stock button), I want to
rebind that initial GridView minus the row I just deleted.
I tried GridView1.DataBind() in the delete command of the FormView, but
it only shows the old GridView with the record I just deleted. I have
to revisit the page to get a good set of data.
I could use code and open a connection, retrieve data and databind that
way, but I didn't think I should have to do that (maybe I'm wrong).
How can I rebind my GridView like it does with its delete button?
Thank you for any help. 2 5604
I have same thing implemented in my project and GridView.Databind working
perfectly. Just verify one thing that both GridView and FormView are
bound to seperate datasource. Chat with me on msn messenger if you still
facing any error.
Shahzad Godil
Karachi-Pakistan
MSN Messenger : sh*********@hotmail.com
<ne***********@gmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
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.
Problem:
I have a GridView that has a select. This select gives a FormView
control the data to open. I set the GridView visible to false. I have
only my FormView open. This FormView is used to edit, have other
DetailsViews that open etc.
On my FormView, when I click delete (the stock button), I want to
rebind that initial GridView minus the row I just deleted.
I tried GridView1.DataBind() in the delete command of the FormView, but
it only shows the old GridView with the record I just deleted. I have
to revisit the page to get a good set of data.
I could use code and open a connection, retrieve data and databind that
way, but I didn't think I should have to do that (maybe I'm wrong).
How can I rebind my GridView like it does with its delete button?
Thank you for any help.
I moved my GridView1.DataBind(); to the ItemDeleted event of the
FormView.
Shahzad Godil wrote:
I have same thing implemented in my project and GridView.Databind working
perfectly. Just verify one thing that both GridView and FormView are
bound to seperate datasource. Chat with me on msn messenger if you still
facing any error.
Shahzad Godil
Karachi-Pakistan
MSN Messenger : sh*********@hotmail.com
<ne***********@gmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
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.
Problem:
I have a GridView that has a select. This select gives a FormView
control the data to open. I set the GridView visible to false. I have
only my FormView open. This FormView is used to edit, have other
DetailsViews that open etc.
On my FormView, when I click delete (the stock button), I want to
rebind that initial GridView minus the row I just deleted.
I tried GridView1.DataBind() in the delete command of the FormView, but
it only shows the old GridView with the record I just deleted. I have
to revisit the page to get a good set of data.
I could use code and open a connection, retrieve data and databind that
way, but I didn't think I should have to do that (maybe I'm wrong).
How can I rebind my GridView like it does with its delete button?
Thank you for any help.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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, &...
|
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...
|
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...
|
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...
|
by: Miguel Dias Moura |
last post by:
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...
|
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...
|
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...
|
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 = <%#...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM).
In this month's session, the creator of the excellent VBE...
|
by: MeoLessi9 |
last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: marcoviolo |
last post by:
Dear all,
I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
| |