<x:Grid ID="Grid1" runat="server" Title="专业信息列表" Height="410px" PageSize="10" ShowBorder="true" ShowHeader="true"
AutoHeight="true" AllowPaging="true" EnableCheckBoxSelect="True" IsDatabasePaging="true" EnableCollapse="true"
DataKeyNames="sub_id,sub_name,sub_desc,sub_years" EnableRowNumber="true" AllowSorting="true" SortColumnIndex="0" OnRowCommand="Grid1_RowCommand"
SortDirection="ASC" ForceFitAllTime="true" EnableHeaderMenu="true" OnSort="Grid1_Sort" OnPageIndexChange="Grid1_PageIndexChange" >
<Columns >
<x:BoundField Width="60px" TextAlign="Center" DataField="sub_id" SortField="sub_id" HeaderText="专业序号" />
<x:BoundField Width="100px" TextAlign="Center" DataField="sub_name" SortField="sub_name" HeaderText="专业名称" />
<x:BoundField Width="50px" TextAlign="Center" DataField="sub_years" SortField="sub_years" HeaderText="专业年制" />
<x:BoundField Width="150px" TextAlign="Center" DataField="sub_desc" HeaderText="专业描述" />
<x:CheckBoxField Width="50px" TextAlign="Center" DataField="sub_flag" RenderAsStaticField="true" HeaderText="专业状态" />
<x:WindowField TextAlign="Center" Width="50px" WindowID="WindowUpDate" IconUrl="../Img/Grid-Update.png"
DataIFrameUrlFields="sub_id,sub_name,sub_desc,sub_years"
ToolTip="编辑" DataIFrameUrlFormatString="../WindowPanel/updatesub.aspx?sub_id={0}&sub_name={1}&sub_desc={2}&sub_years={3}"
Title="编辑" ID="WinUpdate" HeaderText="修改" />
<xinkButtonField TextAlign="Center" ConfirmText="你确定要删除么?" ConfirmTitle="系统提示" IconUrl="../Img/Grid-Delete.png" ConfirmTarget="Top"
ColumnID="lbfAction2" HeaderText="删除" Width="50px" runat="server" ID="LbnDelect" CommandName="LbnDelect" />
<x:BoundField Width="600px" />
</Columns>
</x:Grid>
初学 看不懂啊 你帮我看看我的代码 |