DataGridView 控件用法(可能不是很全面,因爲這是自己常常用到的一些小總結):...

一、DataGridView屬性設置 1、我們單擊選中行的時候,默認是選擇一個單元格,不能選擇一整行,我們只需設置DataGridView的屬性SelectionMode爲FullRowSelect 。用代碼表示:this.dataGridView1.SelectionMode =DataGridViewSelectionMode.FullRowSelect;   2、選擇多行,可設置DataGr
相關文章
相關標籤/搜索