c#.netGr idView1在div不局中

时间:2022-08-21 17:08:25

<div style="margin:0 auto;text-align:center;" >//可以用GridView剧中

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
onpageindexchanging="GridView1_PageIndexChanging"
onrowcancelingedit="GridView1_RowCancelingEdit"
DataKeyNames="ID"
onrowdatabound="GridView1_RowDataBound" onrowdeleting="GridView1_RowDeleting"
onrowediting="GridView1_RowEditing" onrowupdating="GridView1_RowUpdating"
style="text-align: center" Width="1102px">

</div>