|
|
| Riadok 1: |
Riadok 1: |
| − | <viewsecurity developer/>
| |
| − | grid pre Poznámky
| |
| | | | |
| − | Namespace: '''Datalock.Spin.Lea.UI.Spolocne.Controls'''<br>
| |
| − | Trieda: '''[[PoznamkyUC]]'''<br>
| |
| − | Metóda: PoznamkyBO '''Init'''(IApplicationContext applicationContext,string typ)<br>
| |
| − | inicializácia triedy (typ - typ poznámky)<br>
| |
| − | Metóda: DWUltraGrid '''GetGrid'''<br>
| |
| − | referencia na Grid z User Controlu<br>
| |
| − | Metóda: '''InitializeRow'''(InitializeRowEventArgs e,object zmluva_to)<br>
| |
| − | EventHandler pri inicializácii riadku poznámky<br>
| |
| − |
| |
| − | {{Príklad|
| |
| − | <syntaxhighlight lang=csharp>
| |
| − | public partial class PrikladForm:MDIChildEx
| |
| − | {
| |
| − | public PrikladForm(Guid applicationContextId): base(applicationContextId)
| |
| − | {
| |
| − | InitializeComponent();
| |
| − | gridPoznamky.Init(ApplicationContext,"?");
| |
| − | ...
| |
| − | dwNieco.DWItemHandler.DetailItems.Add(gridPoznamky.GetGrid());
| |
| − | gridPoznamky.GetGrid().InitializeRow += PoznamkyRowInitialize;
| |
| − | }
| |
| − |
| |
| − | private void PoznamkyRowInitialize(object sender,InitializeRowEventArgs e)
| |
| − | {
| |
| − | gridPoznamky.InitializeRow(e,prikladTOBindingSource.Current);
| |
| − | }
| |
| − | }
| |
| − | </syntaxhighlight>
| |
| − | }}
| |
| − |
| |
| − | [[category:Grids]]
| |