Ramco Ramco

Ramco Ramco

  • 442
  • 3.4k
  • 517.4k

How to get data

Jun 13 2023 10:05 AM

Hi

I have below data 

Group 2C
Group 2C(i)
Group 3C
Group 3D
Group 3D(i)
Group 3E
Group 3G

I want to display like below

Group 2C , Group 2C(i)

Group 3C

Group 3D , Group 3D(i)

Group 3E

Group 3G

BALGroup bALGroup = new BALGroup();
                List<Group> objGroup = bALGroup.GetGroupList("Group");
                if (objGroup != null)
                {
                    List<string> GroupCollection = new List<string>();
                    foreach (var colum in objGroup)
                    {
                        GroupCollection.Add(colum.GroupName.ToString());
                    }
}

Thanks


Answers (2)