Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Binding data grid view to webmthod

$
0
0

Hi

I am binding data grid view to a web method as below but no data appears in the grid.

    Dim ws As myurl.MyWebService = New myurl.MyWebService

    Dim x = ws.MyWebMethod()

    Me.DataGridView2.DataSource = x

There is data coming in I have checked. I have not added any columns before hand to the grid though. What am I missing?

Regards



Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>