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. Problem in sorting Datagrid

Problem in sorting Datagrid

Scheduled Pinned Locked Moved ASP.NET
questiondatabasealgorithmshelp
3 Posts 3 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.
  • H Offline
    H Offline
    happyheartcs
    wrote on last edited by
    #1

    Hope u r all fine :) I have a problem concerning sorting in a datagrid. I have a bound column that gets its value from 2 database fields -FirstName & LastName- When I write in the sort expression of that column "FirstName" it sorts properly but when I write "FirstName,LastName" it doesn't sort.. So how can I sort using these 2 columns together?? Thanks a lot in advance

    _ V 2 Replies Last reply
    0
    • H happyheartcs

      Hope u r all fine :) I have a problem concerning sorting in a datagrid. I have a bound column that gets its value from 2 database fields -FirstName & LastName- When I write in the sort expression of that column "FirstName" it sorts properly but when I write "FirstName,LastName" it doesn't sort.. So how can I sort using these 2 columns together?? Thanks a lot in advance

      _ Offline
      _ Offline
      _AK_
      wrote on last edited by
      #2

      You cant sort the data in the database with two columns. Alternatively what you can do is make the combination of the two columns and then in sort it there in temporary sorage such as dataset.

      Best Regards, Apurva Kaushal

      1 Reply Last reply
      0
      • H happyheartcs

        Hope u r all fine :) I have a problem concerning sorting in a datagrid. I have a bound column that gets its value from 2 database fields -FirstName & LastName- When I write in the sort expression of that column "FirstName" it sorts properly but when I write "FirstName,LastName" it doesn't sort.. So how can I sort using these 2 columns together?? Thanks a lot in advance

        V Offline
        V Offline
        VishalSharmaDev
        wrote on last edited by
        #3

        try to use dataview for sorting...

        Thanks & Regards Vishal Sharma vishalsharma556@yahoo.co.in

        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