In short: There is a certain tree that is filled with a bunch of data and is beautifully drawn. It is necessary to make grouping on the basis of (see screen). I want to do this: I created a dictionary, which I fill in with key = sign, value = cell address, show 1 cell, hide the rest. And so for each feature. Sobsna, stumbled on hiding. No brainer that needs to work with AfterCellPaint. The question is how? 
- Put aside with the dictionary. There is a dictionary with these parameters. You can define to draw or not to draw in the DrawNode event. Question. How to draw only by the first entry with a given parameter value (the parameter takes around 10 values, how to determine with what the entry was, with what it was not)? - Sfairath
|
1 answer
Make an array of Boolean by the number of cells. Before drawing in cell i check the value of the element i in this array. If False , draw a cell and set it to True . If True , skip the cell. When the filter changes or you need to draw a new one, set False everywhere in this array.
- Then it can make an array of keys, get the key index and set True in the corresponding array element? - Sfairath
- Well, that you know better how best. I set you a direction for reflection. =) - kot-da-vinci
|