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. C#
  4. Data Grid Table Style Allowsorting property

Data Grid Table Style Allowsorting property

Scheduled Pinned Locked Moved C#
helpcsswpfwcfalgorithms
3 Posts 2 Posters 1 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.
  • I Offline
    I Offline
    indiaone
    wrote on last edited by
    #1

    In my project I m created DataGrid TableStyle and DataGrid Text coloumn when clicking on textcolumn contain of that coloumn display in the next form. my problem is before sorting code working fine but when i m doing sorting and clicking on any datagridtextcoloumn it displaying before sorting data. i m binding datagrid with type dataset. sorting base on datagrid header row. help me it's very urgent.

    V 1 Reply Last reply
    0
    • I indiaone

      In my project I m created DataGrid TableStyle and DataGrid Text coloumn when clicking on textcolumn contain of that coloumn display in the next form. my problem is before sorting code working fine but when i m doing sorting and clicking on any datagridtextcoloumn it displaying before sorting data. i m binding datagrid with type dataset. sorting base on datagrid header row. help me it's very urgent.

      V Offline
      V Offline
      Vipin Venugopal
      wrote on last edited by
      #2

      can u make it little more clearer please. I didnt get u. Vipin

      I 1 Reply Last reply
      0
      • V Vipin Venugopal

        can u make it little more clearer please. I didnt get u. Vipin

        I Offline
        I Offline
        indiaone
        wrote on last edited by
        #3

        I m binding datagrid with schema, datagrid having five column datetime ,seqno,networkid,type,message etc. i created datagridtablestyle. datagridtablestyle allowsorting property is true. when i m clicking on datagrid header it doing should sorting according to that. when i m double clicking on any datagridtextcolumn,i m finding on which row and which coloumn i clicked then i m displaying the cell value in the next form.this is also working but before sorting. after sorting when i m doing samething it displaying before sorting data. for example there are three coloumn in datagrid before sortin Id type Message 1 m Hello 2 e bye 3 s Yes when i m double clicking on any row or coloumn it display message coloumn value in the next form. suppose i m doing sorting on message colomn After sorting Id type Message 2 e bye 1 m Hello 3 s Yes when i m double clicking on any row or coloumn it display message coloumn value in the next form. suppose i clicked on Hello that's second row third coloumn ,so it should display Hello in next form but it's displaying old one that is "Bye" even though i m using data grid referesh propertie and re binding the datagrid also. but result is same.

        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