the connection Rules component to delete empty rows of datalow while maintaining
GEEmptyDetailRemover
- extension component GroupEdit which allows you to remove blank lines from GroupEdit
when saving. When you save GroupEdit
with empty lines you may see a message on blank fields (blank in this line).
Important:
GEEmptyDetailRemover
not supplied as standard Flexberry Winforms.Connection GEEmptyDetailRemover
1) In the dependent form class defines an object class GEEmptyDetailRemover
:
public class WinformC__ПокупательE : ICSSoft.STORMNET.UI.BaseWinEdit, IIS.MasterField.DPDIC__ПокупательE
{
public IIS.AMS02.GEEmptyDetailRemover gedr = new IIS.AMS02.GEEmptyDetailRemover();
//...
}
2) are Specified in the form designer GroupEdit
, for which it is necessary to remove empty rows:
public class WinformC__ПокупательE : ICSSoft.STORMNET.UI.BaseWinEdit, IIS.MasterField.DPDIC__ПокупательE
{
public WinformC__ПокупательE()
{
this.InitializeComponent();
m_sCaption = "Buyer";
this.prv_TuneLookupInformations();
// *** Start programmer edit section *** (Form Constructor)
//...
#region возможность удаления пустых детейлов из GE
gedr.AddGroupEdit(Покупки);
gedr.AddGroupEdit(Продажи);
#endregion возможность удаления пустых детейлов из GE
//...
// *** End programmer edit section *** (Form Constructor)
}
//...
}
3) In independent form, the method OnSave calls the function delete empty datalow:
public class C__ПокупательE : ICSSoft.STORMNET.UI.BaseIndpdEdit
{
// *** Start programmer edit section *** (C__, Pokupatela CustomMembers)
protected override void OnSave()
{
//...
#region удаляем пустые детейлы
(Editor as WinformC__ПокупательE).gedr.RemoveEmptyDetails();
#endregion удаляем пустые детейлы
//...
}
//...
}