Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
5
Answers
hide several gridview colums at once
Cassie Mod
8y
290
1
Reply
HI,
Ive got ( 10 ) gridview colums i want to hide.
Now i do it like this:
customersDataGridView.Columns[
"CustomerNumber"
].Visible =
false
;
customersDataGridView.Columns[
"FirstName"
].Visible =
false
;
customersDataGridView.Columns["lastName"].Visible =
false
;
But is there a faster way i could do this with less code ?
Post
Reset
Cancel
Answers (
5
)
Next Recommended Forum
How show more than one row in Crystal Report using c#
What is the difference between ref and out keywords?