您好,就是用EditModeOn,包括.GcNumber我也是在EditModeOn尝试修改control的一些行为,发现没办法完全满足您的需求,比如下面的代码,编辑状态修改maxvalue,但是没办法谁默认值为0.
private void FpSpread1_EditModeOn(object sender, EventArgs e)
{
if(fpSpread1.EditingControl is GrapeCity.Win.Spread.InputMan.CellType.GcNumberEditingControl)
{
var control = fpSpread1.EditingControl as GrapeCity.Win.Spread.InputMan.CellType.GcNumberEditingControl;
control.MaxValue = 999;
}
} |