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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Windows Forms
  4. datagridview sort

datagridview sort

Scheduled Pinned Locked Moved Windows Forms
helpquestionannouncement
1 Posts 1 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.
  • C Offline
    C Offline
    CICCIOLO69
    wrote on last edited by
    #1

    I have a datagridview bound to a dataview. The user click on a column : - add a sort column type system.int - set the dataview.sort to the column field clicked - add several datarows to the datatable ( partial total row ) - while adding the total rows update the column added at the beginning to a numeric sequential value ( 1,2,3,4,....) - when the rows end change the dataview.sort to the sort column If the user click to another column : - delete the rows that contains the total - redo everything for the new column that the user click on it The problem is that everything is ok, because I see in the datagrid the sort column added with the sequential correct value, but the dataview doesn't update . Can someone help ? Regards Andrew

    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