BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private void button1_Click(object sender, System.EventArgs e) { GridDataBoundGrid grid = this.gridDataBoundGrid1; grid.Focus();//set focus back to the grid from the button string search = this.textBox1.Text; if(search.Length > 0) { fr = new GridFindReplaceDialogSink(grid); GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell; frLocationInfo = GridRangeInfo.Cell(cc.RowIndex, cc.ColIndex); this.gridDataBoundGrid1.BeginUpdate(); this.gridDataBoundGrid1.Selections.Add(GridRangeInfo.Cells(1,0,this.gridDataBoundGrid1.Model.RowCount, this.gridDataBoundGrid1.Model.ColCount)); fre = new GridFindReplaceEventArgs(search, "", GridFindTextOptions.SelectionOnly|GridFindTextOptions.MatchWholeCell, frLocationInfo); fr.Find(fre); grid.Selections.Clear(); this.gridDataBoundGrid1.EndUpdate(); grid.Refresh(); //grid.Selections.Add(GridRangeInfo.Row(grid.CurrentCell.RowIndex)); } }
>private void button1_Click(object sender, System.EventArgs e) >{ > GridDataBoundGrid grid = this.gridDataBoundGrid1; > grid.Focus();//set focus back to the grid from the button > string search = this.textBox1.Text; > if(search.Length > 0) > { > fr = new GridFindReplaceDialogSink(grid); > GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell; > frLocationInfo = GridRangeInfo.Cell(cc.RowIndex, cc.ColIndex); > this.gridDataBoundGrid1.BeginUpdate(); > this.gridDataBoundGrid1.Selections.Add(GridRangeInfo.Cells(1,0,this.gridDataBoundGrid1.Model.RowCount, this.gridDataBoundGrid1.Model.ColCount)); > fre = new GridFindReplaceEventArgs(search, "", GridFindTextOptions.SelectionOnly|GridFindTextOptions.MatchWholeCell, frLocationInfo); > fr.Find(fre); > grid.Selections.Clear(); > this.gridDataBoundGrid1.EndUpdate(); > grid.Refresh(); > //grid.Selections.Add(GridRangeInfo.Row(grid.CurrentCell.RowIndex)); > } >} >