Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
17481 | Aug 10,2004 06:17 AM UTC | Sep 21,2011 05:31 AM UTC | WinForms | 9 |
![]() |
Tags: GridControl |
GridFindReplaceDialogSink findReplaceDialogSink; public GridFindReplaceDialogSink GridFindReplaceDialogSink { get { if (findReplaceDialogSink == null) { findReplaceDialogSink = new GridFindReplaceDialogSink(gridDataBoundGrid1); foreach(Control c in GridFindReplaceDialog.Instance.Controls) { if(c.Text.IndexOf("place") > -1) { c.Visible = false; } } } return findReplaceDialogSink; } } private void menuItem1_Click(object sender, System.EventArgs e) { GridFindReplaceDialog frDialog = GridFindReplaceDialog.Instance; frDialog.SetState(GridFindReplaceDialogSink, "", false); frDialog.Text="Find"; frDialog.Show(); }
void gridControl1_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
{
GridCurrentCell cc = this.gridControl1.CurrentCell;
GridControlBase grid = this.gridControl1.CurrentCell.Grid;
if (e.RowIndex > grid.Model.Rows.HeaderCount && e.ColIndex > grid.Model.Cols.HeaderCount
&& cc.HasCurrentCellAt(e.RowIndex, e.ColIndex))
{
e.Style.Interior = new BrushInfo(SystemColors.Highlight);
e.Style.TextColor = SystemColors.HighlightText;
e.Style.Font.Bold = true;
}
}
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.