Winform好用的免费excel控件 --- reogrid控件

时间:2021-09-02 14:35:29   收藏:0   阅读:11

一、安装组件:官网地址: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 = "你好世界";
        }

四、直接上效果图:

技术分享图片

 

原文:https://www.cnblogs.com/Fpack/p/15217919.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!