Datagrid Hierachy

Hello all,
does anyone know how to programmatically collapse an expanded datagrid row?

Thanks in advance
Thomas

Hi @Thomas,

Here is an example:

ExpandRow(TItem item) will toggle expanded state of the row.

hi @enchev,
ok... that works. but only for any row.
now i need to know wich row is expanded so that i can collapse especially this one.

is it possible to expand a panel that contains a hierarchicle grid and all the formerly expanded rows are collapsed?

Thomas

i found it. its "datagridname".Reset(false, true)