473,322 Members | 1,352 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,322 software developers and data experts.

rebind a datagrid

h
i am rather new to asp and this is probably a trivial question but....
i have a datagrid on a page showing some names. I have a button on this same page that when clicked i want to do some database stuff and then reshow the grid(it should be minus one of the names)I think i am rebinding the datagrid at the end of the submit subroutine but it does not seem to work. when i click the button again is when i see the new datagrid missing one of the name. it does not seem to be rebinding at the end of the click event. i really want to rebind at the end of the click event . I rerun my query for new info for the datagrid and then i want to reshow it. Any ideas of what i am doing wrong i included a little snippet of the submit subroutin
Any help would be greatly appreciated

Sub cmd_Submit_Click(ByVal sender As Object, ByVal e As EventArgs
Dim ObjDB As New CustomerBi
Dim ObjDR As OleDbDataReade
Dim ReportDS As DataSe
Dim intResult As Intege
Dim bResult As Boolea
Dim sResult As Strin
Dim intResultOffers As Intege
Dim intPlayerID As Intege
Dim SRound As Strin
Dim intRoundID As Intege
Dim intRoundNumber As Intege
Dim sPlayerIDContractHolder As Strin
Dim intPlayerIDContractHolder As Intege
Dim strCooperate As Strin
Dim strDefect As Strin
Dim strInsurance As Strin
Dim intPlayer As Intege

tr

ReportDS = ObjDB.GetSendBid5(Session("RoundNumber"),Session(" PlayerID")
Catch exc As Exceptio
response.write("The error is with GetSendBid5"
end tr
dgSendBid.DataSource = ReportD
dgSendBid.DataBind(

i think i am rebinding here and trying to reshow the datagrid with new info
Nov 18 '05 #1
1 1937
h
when i try the handles it says i need a withevents variabl
where do i put tha
also what does the handles cmd_Submit.click d

i know the sub is getting run because it is updating my databbase in between.
Nov 18 '05 #2

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...
5
by: Bill Todd | last post by:
In a WinForms application with a DataGrid bound to a DataTable, if I change the DefaultDataView.Sort property the order of the data in the grid does not change. If I change the Sort property...
2
by: Stephen | last post by:
I am trying to delete a row in a datagrid on the onclick of a asp:ButtonColumn. The datagrid is created from the items in an arraylist so what im trying to do is remove the item from the array and...
0
by: Andreas Klemt | last post by:
Hello, I have a UserControl in my DataGrid. When I rebind my DataGrid, the UserControls is gone. What is wrong? Thanks, Andreas
0
by: d pak | last post by:
Here is a snippit which replicates my issue. I have a datagrid which contains an input textbox on each row, binded on the serverside. However it seems that when I perform a postback to refresh teh...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
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...
0
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...
0
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...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.