|
Show example
|
- You can identify row by more row attributes. You can set their names as comma separated list to <Cfg IdNames='???'/>
- When user adds new row or changes value in some identifier column and the id will became nonunique, the last attribute value (from the IdNames) will be regenerated.
- Therefore the last item in IdNames must be column name. But the column need not be editable or visible.
- Other items in IdNames can be column names (editable or read only, visible or hidden), standard row attributes like Def or any user defined attribute filled in <I> tag.
- The attributes in IdNames must not be id attribute or any array attribute like Enum.
- The unique id attribute generated from the IdNames contains all their values separated by '$'.
- Other id attributes like FullId, AppendId or IdChars can be used in the same way as in previous examples.
|
Show data source
<Grid>
<Cfg id='Id5' IdNames='N,S,U'
IdChars='01234567890' NumberId='1'
IdCompare='4'/>
<LeftCols>
<C Name='id' CanEdit='0' Width='90'/>
</LeftCols>
<Cols>
<C Name='N' Width='40'/>
<C Name='S' Width='55'/>
<C Name='U' Type='Int' Width='45'/>
<C Name='A' Width='30'/>
</Cols>
<Header id='Gen id' N='Name' S='Surname'
U='Unique' A='Tmp'/>
<Body>
<B>
<I N='David' S='Smith' U='1' A='Val1'/>
<I N='David' S='Smith' U='2' A='Va2'/>
<I N='Linda' S='Hall' U='1' A='Val3'/>
<I N='Adam' S='Clark' U='1' A='Val4'/>
<I N='David' S='Lewis' U='1' A='Val5'/>
<I N='Jan' S='Rodriguez' U='1' A='Val6'/>
<I N='Linda' S='Lewis' U='1' A='Val7'/>
<I N='Linda' S='Hall' U='2' A='Val8'/>
<I N='Linda' S='Hall' U='3' A='Val9'/>
</B>
</Body>
</Grid>
|