Setting an individual DataGridView Cell

Posted by user315493 on Stack Overflow See other posts from Stack Overflow or by user315493
Published on 2010-04-16T01:07:57Z Indexed on 2010/04/16 1:13 UTC
Read the original article Hit count: 260

Filed under:
|
|

Hi,

In a DataGridView, it is possible to set an individual DataGridViewCell like this:

dataGridView.Item(columnIndex, rowIndex) = New DataGridViewTextBoxCell.

However, is the new DataGridViewCell is set before his owning column become visible, it seems that the individual cell will be replaced (or marked?) by the column default cell.

Is there a way to fix this?

Regards,

Simon

© Stack Overflow or respective owner

Related posts about individual

Related posts about datagridview