C# DataGridView內容合併相同的行

主要原理就是在CellingPainting時間中,刪除原來的所在列的網格,而後從新畫線,顯示內容。代碼以下:this private void dataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e) { // 對第n列相同單元格進行合併,多列合併繼續加條件
相關文章
相關標籤/搜索