yudun1989
New member
- Joined
- Dec 10, 2010
- Messages
- 2
- Programming Experience
- Beginner
I've created a web form by vb.net 2005 and added a gridView called gridView1,now I want to use a web method on web service to bind the gridview,and each time the form was loaded bind a table to the GridView1.how to bind it?
my class name is CCustomerRel and the sub is a construction method
Sub CCustomerRel()
Dim aa As OrderInformation = newAutoService.GetCustomerRepairs()
'GetCustomerRepairs is a web method that returns a table
GridView1.DataSource = aa.OrderStatus
'orderInformation is a class that inherts class 'dataset' and OrderStatus is a table
GridView1.DataBind()
End Sub
my class name is CCustomerRel and the sub is a construction method
Sub CCustomerRel()
Dim aa As OrderInformation = newAutoService.GetCustomerRepairs()
'GetCustomerRepairs is a web method that returns a table
GridView1.DataSource = aa.OrderStatus
'orderInformation is a class that inherts class 'dataset' and OrderStatus is a table
GridView1.DataBind()
End Sub