How can i add two buttons to a single datagrid column dynamically?
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
精彩评论