BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
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;
}
}