How to show data in DataGrid on PPC
-
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); }
-
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); }
You should use DataGrid.DataSource = dataSet; Live Life King Size Alomgir Miah