开发者

How can i add two buttons to a single datagrid column dynamically?

开发者 https://www.devze.com 2023-03-27 13:09 出处:网络
button code DataGridV开发者_运维百科iewButtonColumn btn = new DataGridViewButtonColumn(); dataGridView1.Columns.Add(btn);

button code

DataGridV开发者_运维百科iewButtonColumn btn = new DataGridViewButtonColumn();  
dataGridView1.Columns.Add(btn);  

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.


You need to create a custom DataGridView column.

Here's an article that can help: http://www.devx.com/codemag/Article/35186

0

精彩评论

暂无评论...
验证码 换一张
取 消