Here are the examples of the csharp api class System.Windows.Forms.DataGridView.OnEnabledChanged(System.EventArgs) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
View licenseprotected override void OnEnabledChanged(EventArgs e) { // Push correct palettes into the view _drawPanel.SetPalettes(Enabled ? _stateNormal.Background : _stateDisabled.Background); // Update with latest enabled state _drawPanel.Enabled = Enabled; // Change in enabled state requires a layout and repaint OnNeedResyncPaint(this, new NeedLayoutEventArgs(true)); // Let base class fire standard event base.OnEnabledChanged(e); }