Click here to Skip to main content
15,921,250 members
Articles / Programming Languages / C#

Hide DataGridView columns with no data in any row

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
8 May 2011CPOL 9.1K   2  
Hello,You loop through all the rows, even when you know that the column will be visible (i.e., when the first non-empty cell is found), resulting in time loss and lots of unneeded variable assigments.A second remark is that a hidden column will never be shown later, even if some data is...

Views

Daily Counts

License

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


Written By
Belgium Belgium
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions