We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

GridFilterBar

Hi,
is it possible to set the GridFilterBar-CellValues by Code?

GridDataBoundGrid1[1, 1].CellValue = "test"

Thanks,
Ramon


5 Replies

JJ Jisha Joy Syncfusion Team September 23, 2010 09:59 AM UTC

Hi Ramon,

Yes, You could set values to the filter cells too. The filter bar will at rowindex 1.

Regards,
Jisha



RB Ramon Bernert September 23, 2010 11:16 AM UTC

Yes, but the filter isn't refreshed.



JJ Jisha Joy Syncfusion Team September 24, 2010 05:34 AM UTC

Hi Ramon,

You could achieve the desired behavior by using the following code:

this.gridDataBoundGrid1.CurrentCell.MoveTo(GridRangeInfo.Cell(1, 2));
this.gridDataBoundGrid1.CurrentCell.Renderer.ControlText = "S04";
this.gridDataBoundGrid1.CurrentCell.IsModified = true;
this.gridDataBoundGrid1.CurrentCell.ConfirmChanges();

Regards,
Jisha



RB Ramon Bernert September 27, 2010 07:29 AM UTC

Thanks.



JJ Jisha Joy Syncfusion Team September 28, 2010 06:30 AM UTC

Hi Ramon,

Thank you for your update.

Regards,
Jisha


Loader.
Live Chat Icon For mobile
Up arrow icon