回复 1楼GPCT的帖子
GPCT 你好,
这个需求需要通过 自定义 Editor 来实现,例如使用 TextBox ,再通过 TextBox KeyDown 事件判断输入字符进行处理:
- this.c1FlexGrid1.Cols[1].DataType = typeof(System.Decimal);
- MaskedTextBox tb = new MaskedTextBox();
- //tb.Mask = "";
- tb.TextChanged += tb_TextChanged;
- tb.KeyPress += (_s, _e) =>
- {
- };
- this.c1FlexGrid1.Cols[1].Editor = tb;
复制代码
请你尝试看是否可行。 |