<asp:GridView ID="gvInbox" runat="server" Width="100%" AutoGenerateColumns="False" DataKeyNames="MsgID" DataSourceID="sdsInbox" ondatabound="gvInbox_DataBound" onselectedindexchanged="gvInbox_SelectedIndexChanged" onrowcommand="gvInbox_RowCommand" onrowdatabound="gvInbox_RowDataBound" AllowPaging="True" PageSize="20" onpageindexchanging="gvInbox_PageIndexChanging"> <pagersettings> position="Bottom" pagebuttoncount="20"/> <pagerstyle backcolor="LightBlue"> height="30px" verticalalign="Bottom" horizontalalign="Center"/>
protected void gvInbox_PageIndexChanging(object sender, GridViewPageEventArgs e) { gvInbox.PageIndex = e.NewPageIndex; //gvInbox.DataSource = sdsInbox; gvInbox.Page.DataBind(); }
protected void gridView_PageIndexChanging(object sender, GridViewPageEventArgs e) { gridView.PageIndex = e.NewPageIndex; gridView.DataSource = /* Specify your dataset you want to bind here */ gridView.DataBind(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)