Reputation: 5421
I have a custom control which uses DataGridViewRow
and has a notion of 'child' rows that should disappear when the parent row's visibility is set to false. Is there an option (besides subclassing DataGridViewRow
to override the Visible
property) which can be used to detect changes to this property on my DataGridViewRow
s? I don't see an event directly, but I am wondering if there is a different event elsewhere that perhaps I could somehow leverage.
Edit: The question is not "off topic". "What event can I use to detect changes to DataGridViewRow.Visible?" is a direct question about the official DataGridView
libaries in the .NET framework.
Upvotes: 1
Views: 1339
Reputation: 5421
Going out to the parent DataGridView, there is the DataGridView.RowStateChanged event, which contains e.Row
and e.StateChanged.Visible
.
Upvotes: 4