Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Remove the repeated fields values from the Data Grid.

Remove the repeated fields values from the Data Grid.

Scheduled Pinned Locked Moved ASP.NET
csstutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    qnabeel
    wrote on last edited by
    #1

    Hi, How can we remove the repeated field values from the Data Grid. for Example. If we have three fields in the list page. Country Rates Name Australia 100 ABC Australia 105 DEF Australia 105 GHI Australia 108 JKL New Zealand 100 XYZ New Zealand 101 XYZ New Zealand 100 XYZ So it will show like this: Country Rates Name Australia 100 ABC 105 DEF 105 GHI 108 JKL New Zealand 100 XYZ 101 XYZ 100 XYZ thanks

    A 1 Reply Last reply
    0
    • Q qnabeel

      Hi, How can we remove the repeated field values from the Data Grid. for Example. If we have three fields in the list page. Country Rates Name Australia 100 ABC Australia 105 DEF Australia 105 GHI Australia 108 JKL New Zealand 100 XYZ New Zealand 101 XYZ New Zealand 100 XYZ So it will show like this: Country Rates Name Australia 100 ABC 105 DEF 105 GHI 108 JKL New Zealand 100 XYZ 101 XYZ 100 XYZ thanks

      A Offline
      A Offline
      aarontan
      wrote on last edited by
      #2

      I think manupulate the data in the data source like data table before to bind them to the datagrid. Like after retrieveing the data into the data table, use sort by country. Then loop through each row to see if the next row has the same country or a new country. If same country, set the country cell to ''. juz my thoughts. Aaron

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups