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. modifying dataset values [modified]

modifying dataset values [modified]

Scheduled Pinned Locked Moved ASP.NET
helptutorial
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.
  • P Offline
    P Offline
    peter rankel
    wrote on last edited by
    #1

    hi all, in my dataset i have values like this (first row belongs to column names) AccountName RemarkCode RemarkCount Comapany Count Albert D32 1 AETNA 1 Albert N65 2 Medicaid 1 albert N65 1 MegaLife 1 raj 123 2 MegaLife 1 raj 123 2 Anthem 1 what i want is AccountName RemarkCode RemarkCount Comapany Count Albert D32 1 AETNA 1 ------ N65 1 Medicaid 1 ------ 49ps 1 MegaLife 1 raj 123 2 MegaLife 1 ----- ------ ----- Anthem 1 (---- represents no value at that place) an output like this can any body help me how to do this and i should display the out in a datagrid Thanx in advance your peter -- modified at 10:08 Saturday 8th July, 2006

    S 1 Reply Last reply
    0
    • P peter rankel

      hi all, in my dataset i have values like this (first row belongs to column names) AccountName RemarkCode RemarkCount Comapany Count Albert D32 1 AETNA 1 Albert N65 2 Medicaid 1 albert N65 1 MegaLife 1 raj 123 2 MegaLife 1 raj 123 2 Anthem 1 what i want is AccountName RemarkCode RemarkCount Comapany Count Albert D32 1 AETNA 1 ------ N65 1 Medicaid 1 ------ 49ps 1 MegaLife 1 raj 123 2 MegaLife 1 ----- ------ ----- Anthem 1 (---- represents no value at that place) an output like this can any body help me how to do this and i should display the out in a datagrid Thanx in advance your peter -- modified at 10:08 Saturday 8th July, 2006

      S Offline
      S Offline
      Subrahmanyam K
      wrote on last edited by
      #2

      Hi Peter, If I am clear about your problem the following solution might be helpful. Use the "Item_Databound" event of the DataGrid to check for the columns NULL or Empty values and update that column value with the required string say (----) in the corresponding DataTable (DataSet). The Item_Databound event fires for each and every row in the DataTable when getting binded to the DataGrid. Good Luck. Subrahmanyam K

      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