02-10-2025 04:08 AM
Hi everyone i'm new and i have a lot to learn so here is my first question, hope to be understand if you have any question ask me...
I have to build a Table using an array made of clusters, each cluster contain two string to show Domain and Parameter taking data from a .CSV file ( no problem), the third column show the value and is made up of a enum, string, numeric and boolean. For each row (Of value) i have one value to show in the correct location... e.g: if i have a string i have to show it in the string box but if a have a bool i need to show in the checkbox... So here is my question: How (if possible) can hide or disable the three value indicator that i don't use and show only the one which show the right parameter? I have already tried many ways bue every time it change all the property of the array and not only the one of the cluster element.
Thank you for the support,
Marco
02-10-2025 11:39 AM
This seems to be a continuation of this discussion.
First of all, please embed pictures in your post.
You seem to have an array of clusters, which is NOT a table. Assuming that the visible elements are identical for each array elements, it can be done.
Please attach a simplified version of your code that contains some typical data and tell us what you expect to see.
02-10-2025 04:08 PM
To expand slightly on altenbach's post, you cannot change the visible properties of just one element in an array. Either they all show the Enum field or none of them do. Same with Bool, String, etc.
The simplest way around this would be to use a table control and fill it with strings, converting your elements to strings and back.
Which, coincidentally, is what my datagrid control does for you.