Hi Clay Burch,
It worked very well.
Thanks alot for the code snippet.
How to avoid the double click event(without losing the sorting property of the column) on the column headers for the columns defined in the grid.
Thanks & Regards,
logicengineer.
>>After filtering with custom option, on which row and column(or on which cell) the focus will be focussed.
>>
>The grid''s current cell is left on the filter combobox cell. The position of the currencymanager is left where it was. You can set these items yourself by handling the CurrentCellComfirmedChanges event.
>
>private void gridDataBoundGrid1_CurrentCellAcceptedChanges(object sender, CancelEventArgs e)
>{
> GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
> if(cc.RowIndex == 1)
> {
> cc.MoveTo(this.gridDataBoundGrid1.Model.Rows.FrozenCount + 1, cc.ColIndex);
> this.gridDataBoundGrid1.Binder.CurrentPosition = 0;
> }
>}
>
>
>>How to avoid the click events on the filter combo box.
>>
>
>You can set the cell''s style.Enabled = false.
>
>this.gridDataBoundGrid1[1,1].Enabled = false;
>this.gridDataBoundGrid1.CurrentCell.ResetCurrentCellWithoutDeactivate(); //in case 1,1 is the currentcell
>
>
>>How to restrict the filter combo box to filtering only.
>>
>
>I am not sure what you mean by this question. How can I see the behavior you want to avoid in the FilterBar sample we ship.
>
>
>>As I seen, after filtering if I click the check box which is a immediate row of the filter, the filter custom filter is popping up every time I click the check box.
>>
>>How to avoid such a unwanted event.
>>
>So, you have added a checkbox to a cell in the filterbar row? Are you handling GridFilterBarCreatingColumnHeader, and returning e.Cancel = true to tell the grid not to put a FilterBar cell on this column?
>
>If that does not solve the problem, can you post a sample showing the problem so we can look at it here.