thanks, it worked..
below code will do column only search
''grid.Selections.Add(GridRangeInfo.Cells(0,2,grid.Model.RowCount, 2))''
this will search only the column 2
here, to include the first row,Selection Range''s Top is setted as 0
>I think this is a bug we will have to fix in our code. The code is explicitly skipping that cell when you do a find on the whole table if the search does not start at cell 1,1.
>
>Here is code that made things work for me in the sample by using an explicit range (slightly enlarged to avoid the bug) to search the whole table.
>
>
>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));
> }
>}
>