BeginInvoke异步线程

 this.BeginInvoke(new Action(() =>
{
                dataGridView1.DataSource = BLLBillConsume.BllGetClearMarketLog_detail(detailID);
                dataGridView1.Columns[2].DefaultCellStyle.Alignment = DataGridViewContentAlignment.BottomRight;//文本向右对齐
}));

 

posted @ 2017-09-02 16:01  沉迷编程的程序员  阅读(149)  评论(0编辑  收藏  举报