回复 1楼neu_soucese的帖子
使用 Spread for Winforms 7.0 英文版,GeneralCellType 测试,直接输入编辑和双击单元格编辑,默认位置都在末尾处。
如果你是用的是日文版产品,最好到日本论坛来询问这个 case:http://www.grapecity.com/tools/support/technical/knowledge.asp
或者你可以通过以下代码任意定制编辑位置:
- public Form1()
- {
- InitializeComponent();
- this.fpSpread1.EditModeOn += new EventHandler(fpSpread1_EditModeOn);
- this.fpSpread1.Sheets[0].Cells[0, 0].Text = "ssssss";
- }
- void fpSpread1_EditModeOn(object sender, EventArgs e)
- {
- GeneralEditor ge = this.fpSpread1.EditingControl as GeneralEditor;
- ge.EditModeCursorPosition = FarPoint.Win.EditModeCursorPosition.LastKnownPosition;
- ge.SelectionStart = 2;
- ge.SelectionLength = 5;
- }
复制代码 |