NoActiveCellColumn.cs
上传用户:horngjaan
上传日期:2009-12-12
资源大小:2882k
文件大小:1k
- using System;
- using System.Windows.Forms;
- namespace LumiSoft.UI.Controls
- {
- public class DataGridNoActiveCellColumn : DataGridTextBoxColumn
- {
- protected override void Edit(System.Windows.Forms.CurrencyManager source, int rowNum, System.Drawing.Rectangle bounds, bool readOnly, string instantText, bool cellIsVisible)
- {
- if(this.DataGridTableStyle.DataGrid.CurrentRowIndex > -1){
- this.DataGridTableStyle.DataGrid.UnSelect(this.DataGridTableStyle.DataGrid.CurrentRowIndex);
- }
-
- this.DataGridTableStyle.DataGrid.Select(rowNum);
- }
- }
- }