1、引用dll
2、将生成的控件拖入到窗体中
3、加载Excel模板,含有主要代码,实现cellvaluechange功能,类似datagridview
path = Util.Pub.DownloadFile("重庆模组成本模型.xlsx");
reoGridControl1.Load(path, unvell.ReoGrid.IO.FileFormat.Excel2007);
reoGridControl1.Worksheets[0].CellMouseUp += Form1_CellMouseUp;
reoGridControl1.Worksheets[0].CellDataChanged += Form1_CellDataChanged;
void Form1_CellMouseUp(object sender, unvell.ReoGrid.Events.CellMouseEventArgs e)
{
if (e.Buttons == unvell.ReoGrid.Interaction.MouseButtons.Left)
{
if (e.Cell != null && e.Cell.Address.StartsWith("C"))