Is there a way to force a DataGridView to fire its CellFormatting event for all cells?

前端 未结 5 1461
北荒
北荒 2020-12-16 15:09

We use the CellFormatting event to colour code cells in various grids all over our application.

We\'ve got some generic code which handles export to Excel (and print

5条回答
  •  粉色の甜心
    2020-12-16 15:34

    I have a possible solution - In your export function access the Cell.FormattedValue property of each cell. According to Microsoft, this forces the CellFormatting event to fire.

提交回复
热议问题