Click here to Skip to main content
14,970,700 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am formatting datagridview by providing cell color as per condition using vb.net code . I have written code in cellformatting event of datagridview.
It is working fine, but the event gets called again and again, which slows down my datagridview.
Is there anyway where i can stop the cellformatting event call again and again once it gets painted?
Posted

1 solution

use Datagridview's CurrentCellDirtyStatechange method
and also check the index of column, means for which column's cell you want to apply this color-changing condition so, that it will not execute that code when other column's cells are being change...

Happy Coding!
:)
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900