摘要: private bool ProcessSpecialCommandForDataGridView(int menuCmd, DataGridView dgv) { switch (menuCmd) { case (int)StandardCommand.Copy: if (dgv.SelectedCells.Count > 0) { DataGridViewSelectedCellColl... 阅读全文
posted @ 2010-07-07 21:17 leslie116 阅读(169) 评论(0) 推荐(0) 编辑
摘要: public static CommandID cmdDataGridView; cmdDataGridView = new CommandID(guidSharpErpCmdSet, 5);public class DataGridViewCommand : Command { public DataGridViewCommand() : base(SharpErpCommands.cmdDat... 阅读全文
posted @ 2010-06-20 17:07 leslie116 阅读(149) 评论(0) 推荐(0) 编辑
摘要: protected virtual void OnDataGridView(object sender, EventArgs e) { DataGridView dataGridView = this.CreateDataGridView(); if (dataGridView == null || dataGridView.Columns.Count == 0) { return; } data... 阅读全文
posted @ 2010-06-20 17:04 leslie116 阅读(357) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using System.ComponentModel;using System.Windows.Forms;namespace Lerado.Framework.Forms{ public class ExportEventArgs : CancelEventArgs ... 阅读全文
posted @ 2010-06-15 17:57 leslie116 阅读(96) 评论(0) 推荐(0) 编辑
摘要: protected virtual void OnPreExport(ExportEventArgs e) { DataGridView dgv = null; Control control; for (control = this.ActiveControl; (control != null) && !object.ReferenceEquals(this, control)... 阅读全文
posted @ 2010-06-15 17:56 leslie116 阅读(212) 评论(0) 推荐(0) 编辑
摘要: using System;using System.ComponentModel;using System.ComponentModel.Design;using System.Collections.Generic;using System.Text;using System.IO;using System.Data;using System.Windows.Forms;namespace Dt... 阅读全文
posted @ 2010-06-15 17:54 leslie116 阅读(178) 评论(0) 推荐(0) 编辑
摘要: IDataQueryService 阅读全文
posted @ 2010-06-12 19:03 leslie116 阅读(337) 评论(0) 推荐(0) 编辑