Hi Mohan,
Thanks for your modified sample.
You would have to derive the GridGroup and override the IsGroupVisible() method. Below is a code snippet
protected override bool IsGroupVisible()
{
if( this.GroupOptions.ShowEmptyGroups && this.FilteredRecords.Count == 0 && this.Records.Count > 0 )
return true;
else
return base.IsGroupVisible ();
}
and you need to turn ON the AddNewRecordSection in a group for showing the EmptyGroup add new section.
protected override void OnInitializeSections(bool hasRecords, SortColumnDescriptorCollection fields)
{
// Caption
this.Sections.Add(this.ParentTableDescriptor.CreateCaptionSection(this));
//Details (Add New Records);
this.Sections.Add(this.ParentTableDescriptor.CreateAddNewRecordSection(this));
//you required section here...
}
Modified Sample :
http://www.syncfusion.com/Support/user/uploads/HideNoneCategory_297f9089.zipLet me know if this helps.
Best Regards,
Haneef