jasmine 你好
Spread for WinForms 6中的这一默认行为无法改变,只能通过下面的代码来模拟不选择状态:
- private void Form1_Load(object sender, EventArgs e)
- {
- fpSpread1.FocusRenderer = null;
- fpSpread1.GotFocus += new EventHandler(fpSpread1_GotFocus);
- }
- void fpSpread1_GotFocus(object sender, EventArgs e)
- {
- if (fpSpread1.FocusRenderer == null)
- {
- fpSpread1.FocusRenderer = new EnhancedFocusIndicatorRenderer();
- }
- }
复制代码 |