dgRangePlanGrid_QueryRecordMeetsFilterCriteria

hi,
iam using grouping grid control andinthat grid parent and child record are existing .
when QueryRecordMeetsFilterCriteria ()is fired record are geting filterd but only parent records are visible and not child records


1 Reply

JJ Jisha Joy Syncfusion Team February 7, 2008 08:43 AM UTC

Hi Swaminath,

I have prepared a sample with nested tables and handled the QueryRecordMeetsFilterCriteria event. It dispalys parent table revords along with child table.

private void button1_Click(object sender, EventArgs e)
{
this.gridGroupingControl1.TableDescriptor.RecordFilters.Clear();
this.gridGroupingControl1.TableDescriptor.RecordFilters.Add("[parentID] < 3");

}

void gridGroupingControl1_QueryRecordMeetsFilterCriteria(object sender, QueryRecordMeetsFilterCriteriaEventArgs e)
{
if (restrict)
{
e.Handled = true;
e.Result = (bool)recordPositions[e.Record];
}
}


Please refer the sample in the link to illustrate this:
http://websamples.syncfusion.com/samples/Grid.Windows/71504/main.htm

Please have a look at the above sample and if still the issue exists could you please provide a sample that shows the issue so that we could sort out the cause of the issue and provide you a solution?.

Regards,
Jisha






Loader.
Up arrow icon