Delegate hiding rows in GroupEdit

For imposing simple constraints on the entries shown in GroupEdit, you can use a delegate to hide the rows of the control. This delegate defines the visibility of each record in GroupEdit.

public IsObjectVisibleDelegate IsObjectVisible;
public delegate bool IsObjectVisibleDelegate(DataObject dataObject);

an Example of using a delegate hide rows

Let the form a GroupEdit geВизитКлиентаВБанк containing records ВизитКлиентаВБанк and geВизитКлиентаВБанк you want to display only those records that contain a blank value in the field ЦельВизита.

For this task you need the following:

1) to Determine the delegate (it returns true if the field ЦельВизита have an input of type record ВизитКлиентаВБанк not filled):

private bool IsObjectVisibleMyImplement(DataObject dataObject)
{
	return string.IsNullOrEmpty(((ВизитКлиентаВБанк)dataObject).ЦельВизита);
}

2) to Appoint a delegate geВизитКлиентаВБанк:

public class WinformБанкE : ICSSoft.STORMNET.UI.BaseWinEdit, IIS.LookUpEditManager2.DPDIБанкE
{
	//... 
	public WinformБанкE()
	{
		//... 
		this.geВизитКлиентаВБанк.IsObjectVisible = IsObjectVisibleMyImplement;
		//... 
	}
}