我的设定如下,要怎么设定才可以由鼠标来拖动COLUMN的宽度?
protected void FP1_SET(int sROW)
{
FpSpread1.CancelEdit();
//FpSpread1.EnableAjaxCall = false;
FpSpread1.EnableAjaxCall = true;
FpSpread1.ClientAutoCalculation = false;
FpSpread1.EnableCrossSheetReference = true;
FpSpread1.Sheets[0].AutoPostBack = false;
FpSpread1.Sheets[0].PageMaxAlign = false; //最後一頁不重複
FpSpread1.EditModeReplace = true;
FpSpread1.ActiveSheetViewIndex = 0;
FpSpread1.Height = 310;
FpSpread1.Sheets[0].DefaultStyle.Font.Size = 10;
FpSpread1.Sheets[0].ColumnHeader.DefaultStyle.Font.Size = 10;
FpSpread1.Sheets[0].RowHeader.DefaultStyle.Font.Size = 10;
FpSpread1.Sheets[0].ColumnCount = (int)FP1_COL.COLCOUNT;
FpSpread1.Sheets[0].RowCount = sROW;
FarPoint.Web.Spread.TextCellType _TXT = new FarPoint.Web.Spread.TextCellType();
_TXT.AllowWrap = false;
for (int sCol = 0; sCol < (int)FP1_COL.COLCOUNT; sCol++)
{
switch (sCol)
{
default:
FpSpread1.Sheets[0].ColumnHeader.Columns[sCol].CellType = _TXT;
break;
}
}
FpSpread1.Sheets[0].Columns[(int)FP1_COL.USERID_S].Label = "XXX";
...
FpSpread1.Sheets[0].Columns[(int)FP1_COL.USERID_E].Label = "XXX";
FpSpread1.Sheets[0].Columns[(int)FP1_COL.USERID_S].Width = 60;
FpSpread1.Sheets[0].Columns[(int)FP1_COL.PROC_STATUS].Width = 60;
FpSpread1.Sheets[0].Columns[(int)FP1_COL.PROC_STATUS_DESC].Width = 60;
FpSpread1.Sheets[0].Columns[(int)FP1_COL.PLATENO].Width = 60;
FpSpread1.Sheets[0].Columns[(int)FP1_COL.BSELL_DATE].Width = 60;
FpSpread1.Sheets[0].Columns[(int)FP1_COL.MA_DATE].Width = 80;
FpSpread1.Sheets[0].Columns[(int)FP1_COL.MEM_ID].Width = 80;
FpSpread1.Sheets[0].Columns[(int)FP1_COL.MEM_NAME].Width = 80;
FpSpread1.Sheets[0].Columns[(int)FP1_COL.COL7].Width = 30;
FpSpread1.Sheets[0].Columns[(int)FP1_COL.COL8].Width = 30;
FpSpread1.Sheets[0].Columns[(int)FP1_COL.REFUND_ID].Width = 80;
FpSpread1.Sheets[0].Columns[(int)FP1_COL.REFUND_NAME].Width = 80;
FpSpread1.Sheets[0].Columns[(int)FP1_COL.BANKNO].Width = 80;
FpSpread1.Sheets[0].Columns[(int)FP1_COL.BANKNM].Width = 80;
FpSpread1.Sheets[0].Columns[(int)FP1_COL.RMT_BANKNO].Width = 80;
FpSpread1.Sheets[0].Columns[(int)FP1_COL.RMT_UNAME].Width = 80;
FpSpread1.Sheets[0].Columns[(int)FP1_COL.RMT_AMT].Width = 60;
FpSpread1.Sheets[0].Columns[(int)FP1_COL.ATTACHMENT].Width = 60;
FpSpread1.Sheets[0].Columns[(int)FP1_COL.REMAMT].Width = 60;
FpSpread1.Sheets[0].Columns[(int)FP1_COL.LID].Width = 60;
FpSpread1.Sheets[0].Columns[(int)FP1_COL.BUYERID].Width = 60;
FpSpread1.Sheets[0].Columns[(int)FP1_COL.BACK_ID].Width = 60;
FpSpread1.Sheets[0].Columns[(int)FP1_COL.BACK_NM].Width = 60;
FpSpread1.Sheets[0].Columns[(int)FP1_COL.USERID_E].Width = 60;
} |
|