一、安裝組件:官網地址:https://reogrid.net/document/installation/
unvell.ReoGridWPF.dll
可以在Winfrom的工具箱,直接拖入dll,然后你會在工具箱發現一個“ReoGridControl”控件,拖入窗體就好了。
二、應用空間
using unvell.ReoGrid; using unvell.ReoGrid.Actions;
三、測試:添加一個button1
private void button1_Click(object sender, EventArgs e) { // 獲取當前活動的工作表實例 var sheet = grid.Worksheets["Sheet1"]; sheet.SetCellData(new CellPosition(2, 1), "hello world"); var cell = sheet.Cells["A1"]; cell.Data = "你好世界"; }
四、直接上效果圖:

