this.FpSpread1.ActiveSheetView.ColumnCount = 6;
this.FpSpread1.ActiveSheetView.ColumnHeader.Cells[0, 0].Value = "样品编号";
this.FpSpread1.ActiveSheetView.ColumnHeader.Cells[0, 1].Value = "瓶号";
this.FpSpread1.ActiveSheetView.ColumnHeader.Cells[0, 2].Value = "采样地点";
this.FpSpread1.ActiveSheetView.ColumnHeader.Cells[0, 3].Value = "日期";
this.FpSpread1.ActiveSheetView.ColumnHeader.Cells[0, 4].Value = "时间";
this.FpSpread1.ActiveSheetView.ColumnHeader.Cells[0, 5].Value = "分析项目(分析项目分组根据项目)";
this.FpSpread1.ActiveSheetView.Columns[0].DataField = "fldSampleCode";
this.FpSpread1.ActiveSheetView.Columns[1].DataField = "fldBottleCode";
this.FpSpread1.ActiveSheetView.Columns[2].DataField = "fldSamplingAddress";
this.FpSpread1.ActiveSheetView.Columns[3].DataField = "fldSamplingDate";
this.FpSpread1.ActiveSheetView.Columns[4].DataField = "fldSamplingHour";
this.FpSpread1.ActiveSheetView.Columns[5].DataField = "flditemName";
this.FpSpread1.ActiveSheetView.DataSource = lisvw;
this.FpSpread1.DataBind();
List<vwLims_SampleHandover_Detail> lisvw 这个list 有好几列 但是我只想显示其中几列 怎么做? |
|