/// <summary> /// 构造函数 /// </summary> /// <param name="index"></param> /// <param name="frm"></param> public DGStation(int index, KJ128A.BatmanAPI.IFrmMain frm) { Index = index; menuStation = new KJTpStation_Menu(index, frm); ReadOnly = true; Dock = DockStyle.Fill; AllowUserToAddRows = false; AllowUserToDeleteRows = false; AllowUserToResizeRows = false; RowHeadersVisible = false; SelectionMode = DataGridViewSelectionMode.FullRowSelect; //this.CellMouseClick += new DataGridViewCellMouseEventHandler(DGStation_CellMouseClick); this.CellMouseDown += new DataGridViewCellMouseEventHandler(DGStation_CellMouseClick); this.ContextMenuStrip = menuStation; }