Avatar of curiouswebster
Flag for United States of America asked on

Making a Button stay depressed in a DataGridView

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.

C#.NET ProgrammingASP.NET

Avatar of undefined
Last Comment

8/22/2022 - Mon

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck