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. General Programming
  3. C#
  4. Grouping in Dataview

Grouping in Dataview

Scheduled Pinned Locked Moved C#
sales
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.
  • M Offline
    M Offline
    Mr Sam
    wrote on last edited by
    #1

    I have a Sales Table with the following fields: CustCode, ProdCode, Units, Price, Value I fetch this data in a datatable with all fields. now I want to make a dataview on that datatable with the following fields ProdCode, Sum(Units) as units, Price, Sum(Value) As Value means it contains data on product level. is it possible to make a dataview with this grouping functionality. Bye :rose:

    Bye

    U 1 Reply Last reply
    0
    • M Mr Sam

      I have a Sales Table with the following fields: CustCode, ProdCode, Units, Price, Value I fetch this data in a datatable with all fields. now I want to make a dataview on that datatable with the following fields ProdCode, Sum(Units) as units, Price, Sum(Value) As Value means it contains data on product level. is it possible to make a dataview with this grouping functionality. Bye :rose:

      Bye

      U Offline
      U Offline
      umseker
      wrote on last edited by
      #2

      it would be better using SQL + Group By but if this is not solution try this one HOW TO: Implement a DataSet GROUP BY Helper Class in Visual C# .NET[^]

      UMS

      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