using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Pub_Class; namespace Pub_Control { public partial class Gy_GridView_Hide : Form { private int HSnoCol = 0; private int HCellNameCol = 1; private int HBoolCol = 2; private int HAlignmentCol = 3; const string ViewName = " "; const string ModName = "隐藏列"; public long HItemID;//项目ID public string sCondition; //过滤条件 //ClsGy_GridView_Hide_Ctl oAreaSet = new ClsGy_GridView_Hide_Ctl(); //ClsGy_GridView_Hide_View oAreaSetHlp = new ClsGy_GridView_Hide_View(); TreeNode CurNode = new TreeNode(); public Pub_Class.ClsPub.Enum_OKTag OKTag; public DataGridView oGrd; public string KeyItem; public Gy_GridView_Hide() { InitializeComponent(); } //以下代码基本不需要修改 #region 固定代码 //保存GRID列宽 private void Gy_GridView_Hide_FormClosing(object sender, FormClosingEventArgs e) { ClsPub.SaveGridView(grdMain, this.Name, ClsPub.AppPath); } //窗体加载 private void Gy_GridView_Hide_Load(object sender, EventArgs e) { initGrid(); RefreshTool(); } private bool AllowSave() { return true; } //新增 private void AddNew() { Init(); } //退出模块 private void tc_Click(object sender, EventArgs e) { this.Close(); } //刷新 private void xs_Click(object sender, EventArgs e) { Display(); } //查询 private void cx_Click(object sender, EventArgs e) { Display(); } //得到对应列 private Int32 Fun_GetCol(string sCol)//Lock { for (int c = 0; c