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. data gridview error

data gridview error

Scheduled Pinned Locked Moved C#
csshelpquestion
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
    myinstincts
    wrote on last edited by
    #1

    i have a datagridview with columns group,description,unit_price,amount....i want only the first three columns of the data grid view to be populated..the fourth column is filled using calculations.is it possible to bind this to datatable ???

    P 1 Reply Last reply
    0
    • M myinstincts

      i have a datagridview with columns group,description,unit_price,amount....i want only the first three columns of the data grid view to be populated..the fourth column is filled using calculations.is it possible to bind this to datatable ???

      P Offline
      P Offline
      padmanabhan N
      wrote on last edited by
      #2

      you can achieve this scenario in the database itself... Code:

      create table test_tab (m1 numeric, m2 numeric, m3 numeric)

      insert into test_tab values (1,2,3)
      insert into test_tab values (4,6,8)
      insert into test_tab values (5,7,9)

      select m1,m2,m3 , (m1+m2+m3) as tot from test_tab

      Padmanabhan
      My Articles:
      Articles[^]
      My latest Article:
      Word Automation[^]

      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