本文整理汇总了C#中DevComponents.DotNetBar.SuperGrid.GridColumn类的典型用法代码示例。如果您正苦于以下问题:C# GridColumn类的具体用法?C# GridColumn怎么用?C# GridColumn使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GridColumn类属于DevComponents.DotNetBar.SuperGrid命名空间,在下文中一共展示了GridColumn类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FilterScan
///<summary>
/// FilterScan
///</summary>
///<param name="gridColumn"></param>
public FilterScan(GridColumn gridColumn)
{
_GridColumn = gridColumn;
_OnScanComplete = new EventHandler(OnScanComplete);
_ScanListDelegate = new ScanListDelegate(AddScanItems);
}
示例2: CustomFilter
///<summary>
/// CustomFilter
///</summary>
public CustomFilter(GridPanel gridPanel, GridColumn gridColumn, string filterText)
{
_GridPanel = gridPanel;
_GridColumn = gridColumn;
InitializeComponent();
InitializeText();
InitializeFilter(filterText);
PositionWindow(_GridPanel.SuperGrid);
}
示例3: GetColumnText
private string GetColumnText(GridColumn col, int index)
{
string s = index + " ";
if (string.IsNullOrEmpty(col.Name) == false)
return (s + "-" + col.Name);
if (string.IsNullOrEmpty(col.HeaderText) == false)
return (s + "-" + col.HeaderText);
return (s);
}
示例4: CustomFilterEx
///<summary>
/// CustomFilter
///</summary>
public CustomFilterEx(GridPanel gridPanel,
GridColumn gridColumn, string filterText)
{
_GridPanel = gridPanel;
_GridColumn = gridColumn;
InitializeComponent();
InitializeText();
InitializeFilter(filterText);
PositionWindow(_GridPanel.SuperGrid);
FormClosing += CustomFilterExFormClosing;
filterExprEdit1.InputTextChanged += FilterExprEdit1InputTextChanged;
}
示例5: DoFilterEndEditEvent
/// <summary>
/// Handles invocation of FilterEndEdit events
/// </summary>
internal void DoFilterEndEditEvent(GridColumn column)
{
if (FilterEndEdit != null)
{
GridFilterEndEditEventArgs ev = new
GridFilterEndEditEventArgs(column.GridPanel, column);
FilterEndEdit(this, ev);
}
}
示例6: RenderCheckBox
static internal void RenderCheckBox(
Graphics g, GridFilter gf, GridColumn column, Rectangle bounds)
{
object value = column.FilterValue;
if (_sizeCheckBox == null)
{
_sizeCheckBox = new MyCheckBoxX();
_sizeCheckBox.Text = "";
_sizeCheckBox.BackColor = Color.Transparent;
}
_sizeCheckBox.Enabled = false;
_sizeCheckBox.Size = new Size(20, 20);
_sizeCheckBox.BackColor = GetSimpleColor(gf.GetEffectiveStyle(column));
if (value is CheckState)
_sizeCheckBox.CheckState = (CheckState)value;
else
_sizeCheckBox.CheckState = CheckState.Indeterminate;
Rectangle r = new Rectangle(0, 0, 20, 20);
using (Bitmap bm = new Bitmap(20, 20))
{
_sizeCheckBox.DrawToBitmap(bm, r);
Rectangle t = bounds;
if (bounds.Width > r.Width)
{
t.X += (t.Width - r.Width - 1) / 2;
t.Width = r.Width;
}
if (bounds.Height > r.Height)
{
t.Y += (t.Height - r.Height) / 2;
t.Height = r.Height;
}
g.DrawImage(bm, t);
}
}
示例7: DoPreRenderFilterRowEvent
/// <summary>
/// Handles invocation of PreRenderFilterRowEvent events
/// </summary>
internal bool DoPreRenderFilterRowEvent(Graphics g,
GridFilter filter, GridColumn column, RenderParts parts, Rectangle bounds)
{
if (PreRenderFilterRow != null)
{
GridPanel panel = filter.GridPanel;
GridPreRenderFilterRowEventArgs ev = new
GridPreRenderFilterRowEventArgs(g, panel, filter, column, parts, bounds);
PreRenderFilterRow(this, ev);
return (ev.Cancel);
}
return (false);
}
示例8: DoPreRenderFilterPopupGripBarEvent
/// <summary>
/// Handles invocation of PreRenderFilterPopupGripBar events
/// </summary>
internal bool DoPreRenderFilterPopupGripBarEvent(
Graphics g, FilterPopup filterPopup, GridColumn gridColumn, Rectangle bounds)
{
if (PreRenderFilterPopupGripBar != null)
{
GridPreRenderFilterPopupGripBarEventArgs ev = new
GridPreRenderFilterPopupGripBarEventArgs(g, filterPopup, gridColumn, bounds);
PreRenderFilterPopupGripBar(this, ev);
return (ev.Cancel);
}
return (false);
}
示例9: DoFilterPopupOpeningEvent
/// <summary>
/// Handles invocation of FilterPopupOpening events
/// </summary>
internal bool DoFilterPopupOpeningEvent(GridColumn column, FilterPopup filterPopup)
{
if (FilterPopupOpening != null)
{
GridFilterPopupOpeningEventArgs ev = new
GridFilterPopupOpeningEventArgs(column.GridPanel, column, filterPopup);
FilterPopupOpening(this, ev);
return (ev.Cancel);
}
return (false);
}
示例10: DoFilterPopupLoadedEvent
/// <summary>
/// Handles invocation of FilterPopupLoaded events
/// </summary>
internal void DoFilterPopupLoadedEvent(GridColumn column, FilterPopup filterPopup)
{
if (FilterPopupLoaded != null)
{
GridFilterPopupLoadedEventArgs ev = new
GridFilterPopupLoadedEventArgs(column.GridPanel, column, filterPopup);
FilterPopupLoaded(this, ev);
}
}
示例11: DoFilterLoadItemsEvent
/// <summary>
/// Handles invocation of FilterLoadItems events
/// </summary>
internal bool DoFilterLoadItemsEvent(GridColumn column, ComboBoxEx comboBox)
{
if (FilterLoadItems != null)
{
GridFilterLoadItemsEventArgs ev = new
GridFilterLoadItemsEventArgs(column.GridPanel, column, comboBox);
FilterLoadItems(this, ev);
return (ev.Cancel);
}
return (false);
}
示例12: DoFilterItemsLoadedEvent
/// <summary>
/// Handles invocation of FilterItemsLoaded events
/// </summary>
internal void DoFilterItemsLoadedEvent(GridColumn column, ComboBoxEx comboBox)
{
if (FilterItemsLoaded != null)
{
GridFilterItemsLoadedEventArgs ev = new
GridFilterItemsLoadedEventArgs(column.GridPanel, column, comboBox);
FilterItemsLoaded(this, ev);
}
}
示例13: DoFilterHelpOpeningEvent
/// <summary>
/// Handles invocation of FilterHelpOpening events
/// </summary>
internal bool DoFilterHelpOpeningEvent(GridPanel panel, GridColumn column, SampleExpr sampleExpr)
{
if (FilterHelpOpening != null)
{
GridFilterHelpOpeningEventArgs ev = new
GridFilterHelpOpeningEventArgs(panel, column, sampleExpr);
FilterHelpOpening(this, ev);
return (ev.Cancel);
}
return (false);
}
示例14: DoFilterHelpClosingEvent
/// <summary>
/// Handles invocation of FilterHelpClosing events
/// </summary>
internal void DoFilterHelpClosingEvent(GridPanel panel, GridColumn column, SampleExpr sampleExpr)
{
if (FilterHelpClosing != null)
{
GridFilterHelpClosingEventArgs ev = new
GridFilterHelpClosingEventArgs(panel, column, sampleExpr);
FilterHelpClosing(this, ev);
}
}
示例15: DoFilterHeaderClickEvent
/// <summary>
/// Handles invocation of FilterHeaderClick events
/// </summary>
internal bool DoFilterHeaderClickEvent(
GridPanel gridPanel, GridColumn gridColumn, MouseEventArgs e)
{
if (FilterHeaderClick != null)
{
GridFilterHeaderClickEventArgs ev = new
GridFilterHeaderClickEventArgs(gridPanel, gridColumn, e);
FilterHeaderClick(this, ev);
return (ev.Cancel);
}
return (false);
}