How to refresh the data in datagrid automatically

Showing Answers 1 - 22 of 22 Answers

GauravSrivastava

  • Mar 17th, 2006
 

for refreshing data in data grid control we can use chasing technique

  Was this answer useful?  Yes

sredevi tummala

  • Apr 11th, 2006
 

can u please explain in detail how to refresh the datagrid automatically in vb.net or c#.net

                          thanking you,

Sampoornam

  • Apr 17th, 2006
 

Hi

how to refresh the data in datagrid automatically?

Sonali Panda

  • May 2nd, 2006
 


Refreshing The Grid
No matter how you performes data binding, if your application views dynamic
data you are bound to refresh the grid at some time. It turns out that this is
another trivial task that was made "un-obvious". Here's how:

Get the DataGridCurrencyManager
Call it's refresh method
Note the parameter to BindingContext - this is where most people
fail. It should be a reference to the exact object you binded. 

' Get currency manager
Dim cs As CurrencyManager = _
  CType(MyDataGrid.BindingContext(MyCarsDataSet.Cars), _
        CurrencyManager)
' Refresh
cs.Refresh()

  Was this answer useful?  Yes

Rani

  • Sep 19th, 2006
 

Hi

 use DataGrid1.DataBind() method

  Was this answer useful?  Yes

Deepak Thakur

  • Jan 31st, 2007
 

At Page_Load event :Response.AppendHeader("Refresh",20);20 is the second....after 20seconds ,automatically refresh the page.

  Was this answer useful?  Yes

zero_cool

  • Jul 10th, 2007
 


    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:Label ID="lblNumber" runat="server">0</asp:Label>
                </ContentTemplate>
                <Triggers >
                    <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
                </Triggers>
            </asp:UpdatePanel>
        <asp:Timer ID="Timer1" runat="server" Interval="6000">
        </asp:Timer>
        </div>
    </form>

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions