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

How to get a list of visible columns server-side

$
0
0
Hello Al,

You can traverse the Columns collection of the grid and check their Display and Visible properties:
List<GridColumn> columns = new List<GridColumn>();
foreach (GridColumn column in RadGrid1.MasterTableView.RenderColumns)
{
    if (column.Display == true && column.Visible)
    {
        columns.Add(column);
    }
}

Hope this helps.


Regards,
Konstantin Dikov
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.

Viewing all articles
Browse latest Browse all 78072

Latest Images

Trending Articles



Latest Images

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