private void InternalRaiseCellFormatting(__DataGridViewCell SourceCell) { // X:\jsc.svn\examples\javascript\forms\Test\TestDataGridViewCellFormattingEven\TestDataGridViewCellFormattingEven\ApplicationControl.cs // how costly is this? should we call this // only for cells in view? var a = new DataGridViewCellFormattingEventArgs( SourceCell.ColumnIndex, SourceCell.OwningRow.Index, SourceCell.Value, // what type do we desire? typeof(string), SourceCell.InternalStyle ); if (this.CellFormatting != null) { this.CellFormatting( this, a ); } SourceCell.FormattedValue = a.Value; //Console.WriteLine("InternalRaiseCellFormatting " + new { SourceCell.FormattedValue }); }
private void InternalBindCellMouseEnter(__DataGridViewCell SourceCell) { SourceCell.InternalTableColumn_div.onmouseover += delegate { if (this.CellMouseEnter != null) { this.CellMouseEnter( this, new DataGridViewCellEventArgs( SourceCell.ColumnIndex, SourceCell.OwningRow.Index ) ); } }; SourceCell.InternalTableColumn_div.onmouseout += delegate { if (this.CellMouseLeave != null) { this.CellMouseLeave( this, new DataGridViewCellEventArgs( SourceCell.ColumnIndex, SourceCell.OwningRow.Index ) ); } }; }
private void InternalRaiseCellFormatting(__DataGridViewCell SourceCell) { // X:\jsc.svn\examples\javascript\forms\Test\TestDataGridViewCellFormattingEven\TestDataGridViewCellFormattingEven\ApplicationControl.cs // how costly is this? should we call this // only for cells in view? var a = new DataGridViewCellFormattingEventArgs( SourceCell.ColumnIndex, SourceCell.OwningRow.Index, SourceCell.Value, // what type do we desire? typeof(string), SourceCell.InternalStyle ); if (this.CellFormatting != null) this.CellFormatting( this, a ); SourceCell.FormattedValue = a.Value; //Console.WriteLine("InternalRaiseCellFormatting " + new { SourceCell.FormattedValue }); }
private void InternalBindCellMouseEnter(__DataGridViewCell SourceCell) { SourceCell.InternalTableColumn_div.onmouseover += delegate { if (this.CellMouseEnter != null) this.CellMouseEnter( this, new DataGridViewCellEventArgs( SourceCell.ColumnIndex, SourceCell.OwningRow.Index ) ); }; SourceCell.InternalTableColumn_div.onmouseout += delegate { if (this.CellMouseLeave != null) this.CellMouseLeave( this, new DataGridViewCellEventArgs( SourceCell.ColumnIndex, SourceCell.OwningRow.Index ) ); }; }