System.Windows.Forms.DataGridView.GetRowDisplayRectangle(int, bool)

Here are the examples of the csharp api class System.Windows.Forms.DataGridView.GetRowDisplayRectangle(int, bool) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: lessmsi
Source File: WinFormsHelper.cs
View license
public static void FlashDataGridRow(DataGridViewRow row)
        {
            var grid = row.DataGridView;
            var r = grid.GetRowDisplayRectangle(row.Index, false);
            r.Inflate(0, 2);
            using (var g = grid.CreateGraphics())
            {
                g.DrawRectangle(SystemPens.Highlight, r);
            }
            var t = new Timer();
            t.Tick += (obj, ea) =>
                          {
                              r.Inflate(2, 2);
                              grid.Invalidate(r);
                              ((Timer)obj).Stop();
                          };
            t.Interval = 120;
            t.Start();
        }