473,406 Members | 2,220 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,406 software developers and data experts.

DataGrid automatice refresh

Hi

I need to display DataGraid that refresh automatic
every 30 seconds ?

Thank you.

Jul 21 '05 #1
4 4394
You'll need to requery the DB every 30 seconds then if you mean getting the
latest updates from the DB by refresh. Once you rerun your query, rebind
the grid.
"Dudi Nissan" <du***@e-gold.co.il> wrote in message
news:0b****************************@phx.gbl...
Hi

I need to display DataGraid that refresh automatic
every 30 seconds ?

Thank you.

Jul 21 '05 #2
Hi,

Yes. That is exactly what I mean.
How can I rebind the grid ?

Thank you.

-----Original Message-----
You'll need to requery the DB every 30 seconds then if you mean getting thelatest updates from the DB by refresh. Once you rerun your query, rebindthe grid.
"Dudi Nissan" <du***@e-gold.co.il> wrote in message
news:0b****************************@phx.gbl...
Hi

I need to display DataGraid that refresh automatic
every 30 seconds ?

Thank you.

.

Jul 21 '05 #3
Just use the Datasource and reset it to the new dataTable. Are you in
Winforms or the Web? If the web, you'll need to call DataBind afterward.

Let me know if you have any problem.

Bill
"Dudi Nissan" <du***@e-gold.co.il> wrote in message
news:0d****************************@phx.gbl...
Hi,

Yes. That is exactly what I mean.
How can I rebind the grid ?

Thank you.

-----Original Message-----
You'll need to requery the DB every 30 seconds then if

you mean getting the
latest updates from the DB by refresh. Once you rerun

your query, rebind
the grid.
"Dudi Nissan" <du***@e-gold.co.il> wrote in message
news:0b****************************@phx.gbl...
Hi

I need to display DataGraid that refresh automatic
every 30 seconds ?

Thank you.

.

Jul 21 '05 #4
Hi,

I am in the web.
The code is:
Protected WithEvents dgrdTitles As
System.Web.UI.WebControls.DataGrid

Dim sqlConnectionString As String =
System.Configuration.ConfigurationSettings.AppSett ings
("ConnectionString")

Private Sub Page_Load(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles MyBase.Load

Dim conObj As SqlConnection
Dim cmdSelect As SqlCommand
Dim dtrAlerts As SqlDataReader

' Retrieve records from database
conObj = New SqlConnection(sqlConnectionString)
conObj.Open()
cmdSelect = New SqlCommand("spSelectDetails",
conObj)
cmdSelect.CommandType = CommandType.StoredProcedure
dtrAlerts = cmdSelect.ExecuteReader()

dgrdTitles.DataSource = dtrAlerts
dgrdTitles.DataBind()

dtrAlerts.Close()
conObj.Close()
End Sub

Should I make endless loop and call DataBind ?

Thank you.
-----Original Message-----
Just use the Datasource and reset it to the new dataTable. Are you inWinforms or the Web? If the web, you'll need to call DataBind afterward.
Let me know if you have any problem.

Bill
"Dudi Nissan" <du***@e-gold.co.il> wrote in message
news:0d****************************@phx.gbl...
Hi,

Yes. That is exactly what I mean.
How can I rebind the grid ?

Thank you.

>-----Original Message-----
>You'll need to requery the DB every 30 seconds then if

you mean getting the
>latest updates from the DB by refresh. Once you rerun

your query, rebind
>the grid.
>"Dudi Nissan" <du***@e-gold.co.il> wrote in message
>news:0b****************************@phx.gbl...
>> Hi
>>
>> I need to display DataGraid that refresh automatic
>> every 30 seconds ?
>>
>> Thank you.
>>
>
>
>.
>

.

Jul 21 '05 #5

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

Similar topics

5
by: Jeff | last post by:
IDE: VS 2003 :NET OS: XP Pro My app have a form with a tab-control on it. The tab-control have 2 tabpages. One of the tabpages displays a datagrid, and the other tabpage displays details (order...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
3
by: james crosthwaite via .NET 247 | last post by:
Hi, I'm pretty new to .NET and i'm having a major problem which ireally need some help with. I am developing an application for my office which allows usersto book rooms. I have a Booking Form...
1
by: Andre | last post by:
hi, In my Datagrid i have some text and a image (for each item), if i edit the image and save it to the HD there's no problem, but the image is always saved with the same name (item number.jpg)...
7
by: Juan Romero | last post by:
Hey guys, please HELP I am going nuts with the datagrid control. I cannot get the damn control to refresh. I am using soap to get information from a web service. I have an XML writer output...
2
by: Dan | last post by:
Hi, I have a Datagrid in a simple form that I programmatically modify using something like that : Me.DataGrid1(RowID, ColID) = "blablabla" But my cell wont refresh unless I click on another...
4
by: Dudi Nissan | last post by:
Hi I need to display DataGraid that refresh automatic every 30 seconds ? Thank you.
6
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi - I'm having trouble refreshing a datagrid control bound to a dataset that was created from the New Data Source wizard. What is the code required to refresh the datagrid with data from the...
1
by: simonyong | last post by:
hello, everyone im a newbie to asp.net, getting nut with just a simple stuff please give me some direction How to use dropdownlist when user select one of the method in dropdownlist The fields...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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...

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.