RadGrid - iterate over columns


/ Published in: C#
Save to your folder(s)

Quick loop to get the content of each header in the grid


Copy this code and paste it in your HTML
  1. // have to use full namespace so will work on telerik and not .net grid
  2. foreach (Telerik.UI.Xaml.Controls.Grid.DataGridColumn col in radEProSchedule.Columns)
  3. {
  4. Debug.WriteLine(col.Header.ToString());
  5. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.