Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
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
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Cassie Mod
7y
287
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?