Example #1
0
 protected virtual void OnLink(LinkCell c, Row r, Point index, int yOffset)
 {
     Rectangle rectangle = this.CalculateClientRect();
     int width = rectangle.Width;
     if (this.m_bScrollbarOverlap || ((!this.ShowHeader || (this.HeaderRow.Template != c.Owner)) && (!this.ShowFooter || (this.FooterRow.Template != c.Owner))))
     {
         width -= this.m_vScrollWidth;
     }
     LinkEventArgs lea = new LinkEventArgs(r, c, index.X, index.Y, yOffset);
     if (this.m_doubleBuffered)
     {
         this.Redraw(BackBufferManager.GetBackBufferGraphics(rectangle.Width, rectangle.Height));
         c.DrawActiveLink(BackBufferManager.GetBackBufferGraphics(rectangle.Width, rectangle.Height), lea, width);
     }
     else
     {
         using (Graphics graphics = base.CreateGraphics())
         {
             c.DrawActiveLink(graphics, lea, width);
         }
     }
     this.Refresh();
     if (this.LinkClick != null)
     {
         this.LinkClick(this, lea);
     }
     Links.AddLink(lea.Target);
     this.OnChange(this, GridEventArgsType.Repaint, null);
 }
Example #2
0
 protected internal virtual void DrawActiveLink(Graphics gr, LinkEventArgs lea, int w)
 {
     this.m_bActive = false;
 }
Example #3
0
 protected internal virtual void DrawActiveLink(Graphics gr, LinkEventArgs lea, int w)
 {
     this.m_bActive = false;
 }