How to access all DisplayElements or a particular DisplayElement in GridGrouping control

9 Dec 20191 minute to read

You can access DisplayElements by using the following code.

  • C#
  • //Accesses all the display elements.
    foreach (Element el in gridGroupingControl1.Table.DisplayElements)
    {
        Console.WriteLine(el.Info);
    }
    
    //Accesses a particular display element.
    Console.WriteLine(this.gridGroupingControl1.Table.DisplayElements[index].Info);
  • VB
  • 'Accesses all the display element.
     For Each el As Element In Me.gridGroupingControl1.Table.DisplayElements
        Console.WriteLine(el.Info)
     Next el
    
    'Accesses a particular display element.
    Console.WriteLine(Me.gridGroupingControl1.Table.DisplayElements(index).Info)