按钮code
DataGridViewButtonColumn btn = new DataGridViewButtonColumn();
dataGridView1.Columns.Add(btn);
我使用的WinForms应用程序,在这里就这样我添加两个按钮,但我希望这两个按钮应该是发生在一列只。
I'm using WinForms App, here this way I add two buttons, but I want these two button should be place in single column only.
您必须创建一个自定义的列。看看和的此处一些例子。
You have to create a custom column. Look at here and here for some examples.
上一篇:添加一个TLB作为参考来调用函数VS使用“运行”:有什么区别?有什么区别、函数、TLB、VS
下一篇:类型错误:在 pandas DataFrame上使用Dask时无法设置PICKLE_THREAD._LOCAL对象对象、错误、类型、_LOCAL