开发者

Remove datagridviewcomboboxcell from 1 specific cell in a datagridviewcomboboxcollumn

开发者 https://www.devze.com 2023-03-22 11:37 出处:网络
I have an datagridview as shown in image 1 the row at the bottom does have 2 comboboxcell as expected because I set that collumn to that type. But i want to change that comboboxcell to an textboxcell

I have an datagridview as shown in image 1 the row at the bottom does have 2 comboboxcell as expected because I set that collumn to that type. But i want to change that comboboxcell to an textboxcell but the other cells in that collumn needs to stay a comboboxcell. In the rows underneath klant and project, there are values except for the last row. this row needs to show the total of al the rows

Image1

I hope someone can help me out i can't find anything on go开发者_开发技巧ogle and here on stackoverflow.


You can set individual cells of a datagridview:

DataGridViewCell newCell = new DataGridViewTextBoxCell();
// Set more properties here.
dataGridView1[row, column] = newCell;
0

精彩评论

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