Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. datagrid paging

datagrid paging

Scheduled Pinned Locked Moved C#
databasedesignsysadmintutorial
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    srinivassam
    wrote on last edited by
    #1

    hi all, In my application iam using datagrid ,in that i want to do navigation but my code is not reflecting .and also i want to edit the row , how to do this in properties iam using allow paging=true;

    private void DataGrid1_PageIndexChanged(object source,System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
    {
    DataGrid1.CurrentPageIndex =e.NewPageIndex ;
    //DataGrid1.CurrentPageIndex = e.NewPageIndex;
    String connection = "uid=sa; password=sa123; database=usermanagement; server=c113";

            SqlConnection con= new SqlConnection (connection);
            //SqlCommand cmd=new SqlCommand ("select \* from tbl\_user\_management
            SqlDataAdapter da=new SqlDataAdapter ("select \* from tbl\_user\_management",con);
            con.Open ();
            DataSet ds=new DataSet ();
            da .Fill (ds ,"tbl\_user\_management");
            DataGrid1 .DataSource =ds.Tables\[0\];// ("tbl\_user\_management");
            DataGrid1 .DataBind ();            
            con.Close ();
    
        }
    

    srinivas

    srinivas

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups