how to set my xamlDatagrid filed visibility based on value in my data source class.
for example i have list of source with 3 attribute (col1, col2 col3). 1 of the column may be null value for the list. how can i set the field visibility based on the value ? if col1 all value is null, then I want Collapsed entire col1 and the xamdatagrid just show col2 and col3..
In some case, may be entire col2 will be null, so I want just show col2 and col3 ..
how can i do it in xamlDatagrid ?
Hi,
Thank you for contacting Infragistics.
You could loop through the data grid Fields and if all items of the current field Name in the grid datasource are null, set the field Visibility to collapsed.
Let me know if you have further questions.
Regards,
Petia