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. How to show data in DataGrid on PPC

How to show data in DataGrid on PPC

Scheduled Pinned Locked Moved C#
tutorialquestion
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.
  • K Offline
    K Offline
    KT198238
    wrote on last edited by
    #1

    The program is to use PocketPC to connect the web service and get the dataSet and display to dataGrid. But I can't find method like "setDataBind", how to show the dataSet to DataGrid?? The code is as follow: private void button1_Click(object sender, EventArgs e) { localhost.Service service = new DeviceApplication2.localhost.Service(); service.BeginEmployeeDataSet(new System.AsyncCallback(WriteDataSet), service); } private void WriteDataSet(System.IAsyncResult oRes) { localhost.Service service = (DeviceApplication2.localhost.Service)oRes.AsyncState; System.Data.DataSet ds = service.EndEmployeeDataSet(oRes); }

    A 1 Reply Last reply
    0
    • K KT198238

      The program is to use PocketPC to connect the web service and get the dataSet and display to dataGrid. But I can't find method like "setDataBind", how to show the dataSet to DataGrid?? The code is as follow: private void button1_Click(object sender, EventArgs e) { localhost.Service service = new DeviceApplication2.localhost.Service(); service.BeginEmployeeDataSet(new System.AsyncCallback(WriteDataSet), service); } private void WriteDataSet(System.IAsyncResult oRes) { localhost.Service service = (DeviceApplication2.localhost.Service)oRes.AsyncState; System.Data.DataSet ds = service.EndEmployeeDataSet(oRes); }

      A Offline
      A Offline
      Alomgir Miah
      wrote on last edited by
      #2

      You should use DataGrid.DataSource = dataSet; Live Life King Size Alomgir Miah

      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