troubleshooting Question

Making a Button stay depressed in a DataGridView

Avatar of curiouswebster
curiouswebsterFlag for United States of America asked on
.NET ProgrammingC#ASP.NET
2 Comments1 Solution382 ViewsLast Modified:
I want a button called "Edit" in the first column of my DataGridView which will signify that the row is being edited, and no other row can be edited as they display in a color showing read only mode.  When the user clicks Edit for another row, my dialog will verify the data's okay in the row just edited, and make that button no longer depressed.  Only one Edit button can be depressed at a time.

How do I handle this inside a DataGridView?  The button is of type DataGridViewDisableButtonColumn() and is working fine within the DataGridView, but I need to add this new behaviour and am not quite sure where to add it.


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros