I'm have a datagrid with 30 columns and trying to set the visibility on and off programatically. I want to make sure atleast one column should be visible in the datagrid (i.e. the user can set the visiblity off only on 29 columns max). How this can be done?
I tried with countColumns but always the count is returning max number of columns.