Im new in C# and facing a problem. I have a link label which shows the DataGridview on click. I would like to do this thing in classes. Can anybody tell me that how can I do it in a seperate class?
ahmed.talha.16 -3
Newbie Poster
Recommended Answers
Jump to PostWhile I understand the end result you want, I'm not sure what you mean by doing it in a separate class. Can you be more specific?
Jump to PostIf you simply want to show and hide the DataGridView (DGV) when a particular label is clicked you only need check if the DGV is visible or not and then do
DataGridView.Visible = true;
(or = false if you want to hide the DGV), within the predefined clicked method for …
All 6 Replies
deceptikon 1,790
Code Sniper Team Colleague Featured Poster
ChrisHunter 152
Posting Whiz in Training Featured Poster
ahmed.talha.16 -3
Newbie Poster
ahmed.talha.16 -3
Newbie Poster
ddanbe 2,724
Professional Procrastinator Featured Poster
ahmed.talha.16 -3
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.