-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Joseph A Moraes
Message 6 in Discussion

Hi Bhuvan,   As soon as you enable paging, you make pager-style.visible = false. Now 
you use your custom Link Button for navigation where you easily specify tool tip.   
<asp:datagrid id="dgStudentList" Runat="server" AllowPaging="True" 
PagerStyle-Visible="false"> </asp:datagrid> <asp:linkbutton id="lnkFirst" 
Runat="server" CausesValidation=False Visible="False" CommandName="First" text="First" 
OnCommand="Navigate" ToolTip="First"></asp:linkbutton>
<asp:linkbutton id="lnkPrevious" Runat="server"  CausesValidation=False 
Visible="False" CommandName="Previous" text="Previous" OnCommand="Navigate" 
ToolTip="Previous"></asp:linkbutton>
<asp:linkbutton id="lnkNext" Runat="server"  CausesValidation=False Visible="False" 
CommandName="Next" text="Next" OnCommand="Navigate" ToolTip="Next"></asp:linkbutton>
<asp:linkbutton id="lnkLast" Runat="server"  CausesValidation=False Visible="False" 
CommandName="Last" text="Last" OnCommand="Navigate" ToolTip="Last"></asp:linkbutton>   
        Sub Navigate(ByVal sender As System.Object, ByVal e As 
System.Web.UI.WebControls.CommandEventArgs)
            Select Case e.CommandName
                Case "First"
                    dgStudentList.CurrentPageIndex = 0
                Case "Previous"
                    dgStudentList.CurrentPageIndex = _
                       Math.Max(0, dgStudentList.CurrentPageIndex - 1)
                Case "Next"
                    dgStudentList.CurrentPageIndex = _
                       Math.Min(dgStudentList.PageCount - 1, _
                       dgStudentList.CurrentPageIndex + 1)
                Case "Last"
                    dgStudentList.CurrentPageIndex = _
                        dgStudentList.PageCount - 1
            End Select            'Call Datagrid Bind
    End Sub
    

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to