Click here to Skip to main content
15,887,596 members
Articles / Programming Languages / C#

Hide DataGridView columns with no data in any row

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
4 May 2011CPOL 8.6K   3  
I hate to be overly critical, but variable names of flag1 and flag2 are poor choices. Use a name that tells the reader what it actually represents (e.g FoundData). Perhaps better naming options would help you see that flag2 will never be anything other than True, and is completely unnecessary....

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
New Zealand New Zealand
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions