var x = (from item in SHIPMENTs group item by item.SOLD_TO)
.Select(it=> new {A = it.Sum( g=>g.DELIVER_QTY) ,
B = it.Sum(g=>g.AMOUNT)
}
);
2015年2月28日 星期六
2015年2月15日 星期日
Telerik Grid Width
1. By default, Grid will use auto layout for grid
2. If we need to specify the width
set TableLayout="Fixed" and specified the column header and item to a specified width
Ex:
<MasterTableView DataKeyNames="DELL_ACTIVITY_SHIPMENT_ID"
DataSourceID="EntityDataSource1" ShowGroupFooter="true" TableLayout="Fixed">
<Columns>
<telerik:GridBoundColumn DataField="ROW_NO"
HeaderText="ROW NO" AllowFiltering="false"
SortExpression="ROW_NO" UniqueName="ROW_NO" DataType="System.Int32">
<HeaderStyle Width="60px" />
<ItemStyle Width="60px" />
</telerik:GridBoundColumn>
2. If we need to specify the width
set TableLayout="Fixed" and specified the column header and item to a specified width
Ex:
<MasterTableView DataKeyNames="DELL_ACTIVITY_SHIPMENT_ID"
DataSourceID="EntityDataSource1" ShowGroupFooter="true" TableLayout="Fixed">
<Columns>
<telerik:GridBoundColumn DataField="ROW_NO"
HeaderText="ROW NO" AllowFiltering="false"
SortExpression="ROW_NO" UniqueName="ROW_NO" DataType="System.Int32">
<HeaderStyle Width="60px" />
<ItemStyle Width="60px" />
</telerik:GridBoundColumn>
訂閱:
文章 (Atom)