/// <summary> /// /// </summary> /// <param name="e"></param> protected override void OnClick(EventArgs e) { FilterRow filterRow = this.Row as FilterRow; if (filterRow != null) { filterRow.EndEdit(); filterRow.ApplyFilters(); } base.OnClick(e); }
/// <summary> /// /// </summary> /// <param name="e"></param> protected override void PaintForeground(GridPaintEventArgs e) { FilterRow filterRow = this.Row as FilterRow; if (filterRow == null) { return; } Image filterIcon = s_searchImage; Rectangle rectangle = this.DisplayRectangle; int left = rectangle.Left; int top = rectangle.Top; left += (int)(rectangle.Width - filterIcon.Width) / 2; top += (int)(rectangle.Height - filterIcon.Height) / 2; e.Graphics.DrawImage(filterIcon, new Point(left, top)); }
/// <summary> /// /// </summary> /// <param name="template"></param> protected FilterRow(FilterRow template) : base(template) { }