回复 3楼不停息的翔龙的帖子
你可以通过直接在editor插入换行符来处理。
比如c1FlexGrid代码参考:
- private void c1FlexGrid1_KeyDownEdit(object sender,
- C1.Win.C1FlexGrid.KeyEditEventArgs e)
- {
- if (e.Alt && e.KeyCode == Keys.Enter)
- {
- e.Handled = true;
- TextBox tb = c1FlexGrid1.Editor as TextBox;
- if (tb != null) tb.SelectedText = "rn";
- }
- }
复制代码 |