public Form1(IDocumentObject obj) { InitializeComponent(); _Obj = obj; //Control.CheckForIllegalCrossThreadCalls = false; CSHelper.getsqlconn(); }
private void Form1_Load(object sender, EventArgs e) { CSHelper.getsqlconn(); //不加这句话,有时候不按设计的列来排序,而且线程更新时设计的style没有了 this.dgvTable.AutoGenerateColumns = false; dgvTable.EnableHeadersVisualStyles = false; dgvTable.Columns["unuseSpace"].HeaderCell.Style.BackColor = Color.PaleTurquoise; }
private void Form1_Load(object sender, EventArgs e) { CSHelper.getsqlconn(); }