Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 78072

Remove all columns

$
0
0

I have wanted only to remove one column and not all of them and faced this problem. The way to fix this was by doing a ToList() in the foreach like so: 

foreach(var column inGridQueue.Columns.ToList())
{
    GridQueue.MasterGridViewTemplate.Columns.Remove(column);
}

Hope it helps others. 

 

Carlitos


Viewing all articles
Browse latest Browse all 78072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>