var option = {
parentNode : parentNode,
//grid的属性,设计时有的属性都可以设置
xid:"gridMain",
data: "dsMaster",
width: '100%',
height:'auto',
hiddenCaptionbar:'true',
multiselect:'true',
multiboxonly:'true',
multiselectWidth:'15',
useFilterBar:'true',
showRowNumber:'true',
rowNumberWidth:'20',
directEdit:'true',
serverSort:'true',
altRows:'true',
appearance:'grid',
colModel :Collist
// 列定义
// colModel : [{width:"30",label:"采购订单",name:"fBuyCode",xid:"column1" },{width:"50",label:"指令单",name:"fSellCode",xid:"column2"},{width:"100",label:"类型",name:"fBillType",xid:"fBillType"}]
};
new Grid(option);
|