Click here to Skip to main content
16,019,764 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
public void BindGridView(string IncidentZone)
    {
        CDriver objDriver = new CDriver();
        DataTable dt = objDriver.GetDriversForIncident(IncidentZone);
        Session["Smsdata"] = dt;
        if (dt.Rows.Count > 0)
        {
            tblSearchCUser.Visible = true;
            DataView dv = dt.DefaultView;
            
            gvDriver.DataSource = dt;
            gvDriver.DataBind();
            
        }


I want to bind gridview row by row ,and on timer tick want to bind next rows
Posted
Updated 24-May-10 3:19am
v4
Comments
Christian Graus 24-May-10 8:30am    
I deleted where you asked this twice. The preview function exists so you can see how screwed up your post is. You can also edit your post later, as I did for you here.

1 solution

tejasvee wrote:
den


A den is what wolves sleep in. Did you mean 'then' ?

Sounds like you need to either use AJAX, or write a lot of javascript to show your data in a cascading fashion. If you use a repeater, you will have more control over the output and you could then emit the data in rows that are hidden, and use an id scheme that makes sense ( like row1, row2 ) and use a loop and a timer to show them one at a time.

Binding like this will always show all the data, the only thing you can hope to do, is to hide some of it from the casual viewer and show it. Or you need to create methods that return one row at a time, and render it yourself with AJAX, if you prefer.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900