请尝试以下代码,看是否可以解决问题
- public Form1()
- {
- InitializeComponent();
- this.gcMultiRow1.CellBeginEdit += GcMultiRow1_CellBeginEdit;
- this.gcMultiRow1.CellEndEdit += GcMultiRow1_CellEndEdit;
- }
- private void GcMultiRow1_CellEndEdit(object sender, CellEndEditEventArgs e)
- {
- this.gcMultiRow1.HideTouchKeyboard();
- }
- private void GcMultiRow1_CellBeginEdit(object sender, CellBeginEditEventArgs e)
- {
- if(this.gcMultiRow1.CurrentCell is TextBoxCell)
- {
- this.gcMultiRow1.ShowTouchKeyboard();
- }
- }
复制代码 |