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. Web Development
  3. ASP.NET
  4. How to fire query on dataset?

How to fire query on dataset?

Scheduled Pinned Locked Moved ASP.NET
cssdatabasexmlperformancehelp
4 Posts 3 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.
  • S Offline
    S Offline
    Sachin Gedam
    wrote on last edited by
    #1

    Hello Friends, I am facing on problem regarding XML and slow performance. Actually I am reading data from XML node by node. Now what i am thinking that, we can convert XML file to dataset and we can access data from dataset. But I am not able to get a way to access data from dataset. Can you please tell me how to fire query on dataset? Like if I collect all data from XML to dataset now want to get all employee having sal>=5000 How to fire this query on dataset? And resultant should be bindable to grid. Sachin Gedam (Software Engg.) Pune India

    I 1 Reply Last reply
    0
    • S Sachin Gedam

      Hello Friends, I am facing on problem regarding XML and slow performance. Actually I am reading data from XML node by node. Now what i am thinking that, we can convert XML file to dataset and we can access data from dataset. But I am not able to get a way to access data from dataset. Can you please tell me how to fire query on dataset? Like if I collect all data from XML to dataset now want to get all employee having sal>=5000 How to fire this query on dataset? And resultant should be bindable to grid. Sachin Gedam (Software Engg.) Pune India

      I Offline
      I Offline
      Irshad Ahmad Sulaimani
      wrote on last edited by
      #2

      Dear Sachin:) You can do this simply by using Data table's select m,ethod. By specifying the condition u'll be returned with the required rows. for example: DataSet ds ; ------// Get the dataset from XML File or from From Database as needed ------ ----- ds.Tables[0].TableName = "Table1"; // It will return all rows in which value in the salary column >=5000 DataRow[] dr=ds.Tables[0].Select("Salary >=5000 "); Hope it works.:rose: Bye, Irshad Ahmad Irshad A Sulaimani

      A 1 Reply Last reply
      0
      • I Irshad Ahmad Sulaimani

        Dear Sachin:) You can do this simply by using Data table's select m,ethod. By specifying the condition u'll be returned with the required rows. for example: DataSet ds ; ------// Get the dataset from XML File or from From Database as needed ------ ----- ds.Tables[0].TableName = "Table1"; // It will return all rows in which value in the salary column >=5000 DataRow[] dr=ds.Tables[0].Select("Salary >=5000 "); Hope it works.:rose: Bye, Irshad Ahmad Irshad A Sulaimani

        A Offline
        A Offline
        anj1983
        wrote on last edited by
        #3

        Could you tell me where i could find articles regarding the use of dataset that could help me understand clearly and indepth the use of dataset. leo

        I 1 Reply Last reply
        0
        • A anj1983

          Could you tell me where i could find articles regarding the use of dataset that could help me understand clearly and indepth the use of dataset. leo

          I Offline
          I Offline
          Irshad Ahmad Sulaimani
          wrote on last edited by
          #4

          Dear Mate:) Msdn is the good place to learn about dataset. U can also search dot net sites under ADO.NET section to read articles about dataset. Regards:-O, Irshad Ahmad Irshad A Sulaimani

          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