Spread 中必须填写怎么设置?
发现有RequiredFieldValidator ,但是如果不点击到里面不会做验证的。
FarPoint.Web.Spread.TextCellType txt1 = new FarPoint.Web.Spread.TextCellType();
RequiredFieldValidator rfv = new RequiredFieldValidator();
rfv.ErrorMessage = "RequiredFieldValidator, from code: value required!";
txt1.Validators.Add(rfv);
FpSpread1.ActiveSheetView.Cells[0, 0].Text = "RequiredFieldValidator, from code";
FpSpread1.ActiveSheetView.Cells[0, 1].CellType = txt1;
有一个帖子自定义的CellType,但是不符合要求:http://gcdn.gcpowertools.com.cn/showtopic-17392.html |
|