Hi All,

Is there any event to catch the column visibility change of datagridview?

I am using a custom datagridview. I need to update the horizontal scrollbar maximum value whenever the column visibility is changed.

Please provide some idea.
Thank you.

Recommended Answers

You can use the DataGridView.ColumnStateChanged event, and the DataGridViewColumnStateChangedEventArgs.StateChanged property to determine if it was a visibility change.

Jump to Post

All 2 Replies

Thank you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.