This question is locked. New answers and comments are not allowed.
I've got a RadGridView with too many entries in it, and a setup form to allow my users to decide which columns to see.
I have a default setup with a bunch of columns hidden, and then when the setup form is saved, I spin through and set all my columns IsVisible = false then spin through the list of columns they've selected:
This works great for columns that are visible when the code is exercised, but for columns that are not visible I get a null return in gvc.
If this doesn't work, what is the correct way to find a column by name if it is hidden?
Thanks!
-Dave
I have a default setup with a bunch of columns hidden, and then when the setup form is saved, I spin through and set all my columns IsVisible = false then spin through the list of columns they've selected:
for (int j = 0; j < obj.Count; j++) { GridViewColumn gvc = gvMyWork.Columns[obj[j].DisplayName]; gvc.IsVisible = obj[j].IsSelected; gvc.DisplayIndex = obj[j].DisplayOrder; }This works great for columns that are visible when the code is exercised, but for columns that are not visible I get a null return in gvc.
If this doesn't work, what is the correct way to find a column by name if it is hidden?
Thanks!
-Dave