Hi All,

I want to have a custom drill down datagridview.

How could I do it ?

Thank you.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Avinash DesaiSr Software EngineerCommented:

Create a custom Control on the Row  double Click event of the data gridview Create a new Gridview or Load the data to the same gridview using Case Statement.

Avinash Desai
emi_sastraAuthor Commented:
Hi Avinash_Desai,

I don't know how to code it.

Would you please provide code how to do it?

Thank you.
Avinash DesaiSr Software EngineerCommented:

Sorry for the late reply

Please refer the file attached for the code and follow the below steps

1. open the file Form1.vb in text file and copy entire coding
2. Create a new Project and new form and paste the code after adding the Datagriview to the Form
and name the Datagridview as  DVGDrillDown
3. Set the DVGDrillDown properties
and make it read only

Still any problem please let me know

If i am wrong let me know

Avinash Desai Form1.txt
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

emi_sastraAuthor Commented:
I can not find AutogenerateRows property ?

Thank you.
Avinash DesaiSr Software EngineerCommented:
Sorry check for


Let me know the code working now?
emi_sastraAuthor Commented:
I don't understand you code do.

I think you misunderstand my question ?

What I mean drill down is like a tree.

Thank you.
Avinash DesaiSr Software EngineerCommented:

Then check out this link


emi_sastraAuthor Commented:
I have checked this link but can not find the code provided there.


Thank you.
Avinash DesaiSr Software EngineerCommented:


The Link shared is invalid

Please check in this link


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
emi_sastraAuthor Commented:
That's great.

Thank you very much for your help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.