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

Home Posts Topics Members FAQ

How to reset DataGrid to view DB updates

HB
Guys,

PLS tell me How to reset DataGrid to view DB updates?
if I refill the dataset it double the records.

Thanks

HB
Nov 18 '05 #1
6 2175
how are you filling it? using a databind or manually?

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"HB" <hb******@promastar.com> wrote in message
news:un**************@TK2MSFTNGP11.phx.gbl...
Guys,

PLS tell me How to reset DataGrid to view DB updates?
if I refill the dataset it double the records.

Thanks

HB

Nov 18 '05 #2
HB
Databind

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:e1****************@tk2msftngp13.phx.gbl...
how are you filling it? using a databind or manually?

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"HB" <hb******@promastar.com> wrote in message
news:un**************@TK2MSFTNGP11.phx.gbl...
Guys,

PLS tell me How to reset DataGrid to view DB updates?
if I refill the dataset it double the records.

Thanks

HB


Nov 18 '05 #3
try a .clear() before the bind on a postback

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"HB" <hb******@promastar.com> wrote in message
news:eC**************@TK2MSFTNGP09.phx.gbl...
Databind

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:e1****************@tk2msftngp13.phx.gbl...
how are you filling it? using a databind or manually?

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"HB" <hb******@promastar.com> wrote in message
news:un**************@TK2MSFTNGP11.phx.gbl...
Guys,

PLS tell me How to reset DataGrid to view DB updates?
if I refill the dataset it double the records.

Thanks

HB



Nov 18 '05 #4
HB
Clear is not a listed method under the DataGrid

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uY**************@TK2MSFTNGP12.phx.gbl...
try a .clear() before the bind on a postback

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"HB" <hb******@promastar.com> wrote in message
news:eC**************@TK2MSFTNGP09.phx.gbl...
Databind

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:e1****************@tk2msftngp13.phx.gbl...
how are you filling it? using a databind or manually?

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"HB" <hb******@promastar.com> wrote in message
news:un**************@TK2MSFTNGP11.phx.gbl...
> Guys,
>
> PLS tell me How to reset DataGrid to view DB updates?
> if I refill the dataset it double the records.
>
> Thanks
>
> HB
>
>



Nov 18 '05 #5
I'm going off the top of my head so it may be down a level....
..DataSource.Clear() perhaps?
--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"HB" <hb******@promastar.com> wrote in message
news:uI*************@tk2msftngp13.phx.gbl...
Clear is not a listed method under the DataGrid

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uY**************@TK2MSFTNGP12.phx.gbl...
try a .clear() before the bind on a postback

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"HB" <hb******@promastar.com> wrote in message
news:eC**************@TK2MSFTNGP09.phx.gbl...
Databind

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:e1****************@tk2msftngp13.phx.gbl...
> how are you filling it? using a databind or manually?
>
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> www.Darkfalz.com
>
>
> "HB" <hb******@promastar.com> wrote in message
> news:un**************@TK2MSFTNGP11.phx.gbl...
> > Guys,
> >
> > PLS tell me How to reset DataGrid to view DB updates?
> > if I refill the dataset it double the records.
> >
> > Thanks
> >
> > HB
> >
> >
>
>



Nov 18 '05 #6
HB
Many Thanks

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I'm going off the top of my head so it may be down a level....
.DataSource.Clear() perhaps?
--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"HB" <hb******@promastar.com> wrote in message
news:uI*************@tk2msftngp13.phx.gbl...
Clear is not a listed method under the DataGrid

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uY**************@TK2MSFTNGP12.phx.gbl...
try a .clear() before the bind on a postback

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"HB" <hb******@promastar.com> wrote in message
news:eC**************@TK2MSFTNGP09.phx.gbl...
> Databind
>
> "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> news:e1****************@tk2msftngp13.phx.gbl...
> > how are you filling it? using a databind or manually?
> >
> > --
> > Curt Christianson
> > Owner/Lead Developer, DF-Software
> > www.Darkfalz.com
> >
> >
> > "HB" <hb******@promastar.com> wrote in message
> > news:un**************@TK2MSFTNGP11.phx.gbl...
> > > Guys,
> > >
> > > PLS tell me How to reset DataGrid to view DB updates?
> > > if I refill the dataset it double the records.
> > >
> > > Thanks
> > >
> > > HB
> > >
> > >
> >
> >
>
>



Nov 18 '05 #7

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

Similar topics

2
by: Stephan Steiner | last post by:
Hi I'm using several DataTables in my program which are updated periodically. At the same I have those tables bound to DataGrids in my GUI. So far I've been doing all the processing in the same...
3
by: Bill C. | last post by:
Hello, I know this has been discussed a lot already because I've been searching around for information the last few weeks. I'm trying to implement a DataGridComboBoxColumn class. I've found...
6
by: VM | last post by:
I have a 35000 line datagrid and updating one field in all 35000 rows takes an eternity. How come? Since I don't have the datasource available (it may be a table or view), in my example I do it...
3
by: vinayak | last post by:
Hi I am displaying data in Datagrid in ASP.NET with Edit/Update functionality for each row. On the same page I have 2 Button controls which submits the request to server. These button controls...
4
by: Lee Chapman | last post by:
Hi, Can anyone tell me why in the code below, the call to ClearChildViewState() has no effect? To paraphrase the code: I'm using view state. I have a textbox and a submit button (and a label...
10
by: JohnR | last post by:
I have a datatable as the datasource to a datagrid. The datagrid has a datagridtablestyle defined. I use the datagridtablestyle to change the order of the columns (so they can be different than...
4
by: cooltech77 | last post by:
Hi, I am trying to build the following functionality in the datagrid. I have a lot of columns in the datagrid which are being populated from the database and the user needs to scroll...
6
by: Scott McDaniel | last post by:
I'm using Visual Studio 2005 with the .NET 2.0.50727 framework, and we're using the standard Datagrid control bound to a SQL Server. We have two groups of users - "full edit" users, and "view...
3
by: melton9 | last post by:
I'm just getting into using datagrid and have a couple of questions. 1.)How do you get the grid to show the values of a datatable automatically? Currently I have to hit the + sign and then...
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
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,...
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
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: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.