关于DataGrid控件

 

<asp:DataGrid id="DataGrid1" style="Z-INDEX: 101; LEFT: 40px; POSITION: absolute; TOP: 472px"
                runat
="server" PageSize="5" Height="112px" AllowCustomPaging="True" AllowPaging="True" Width="560px"
                AllowSorting
="True">
                
<PagerStyle Mode="NumericPages"></PagerStyle>
            
</asp:DataGrid>

DataGrid1.DataSource = DocDataset.Tables(0)
DataGrid1.DataBind()
docdataset里面的记录数大于五条
就是不好分页,不知道为什么!~~

posted on 2006-10-26 11:33  JY---BLOGS  阅读(272)  评论(0)    收藏  举报

导航