How to populate a vb.net DataGridView control

jwilder
Member Posts: 263
I have a page called Customer List which lists the No. and Name fields. I have published the Page through Business Web Services. I would now like to show the Customer Records in a vb.net DataGridView Control.
I have a Project started that references the Web Services so I have access to the Read, ReadMultiple Functions etc...
Can someone provide me with some documentation on how to do this. I am a bit confused on how many records to read and display plus what if someone does a Ctrl Home or Ctrl End or Page Down or Page Up. I basically do not know how to use the DataFlexGrid control with a web service.
I have a Project started that references the Web Services so I have access to the Read, ReadMultiple Functions etc...
Can someone provide me with some documentation on how to do this. I am a bit confused on how many records to read and display plus what if someone does a Ctrl Home or Ctrl End or Page Down or Page Up. I basically do not know how to use the DataFlexGrid control with a web service.
Jason Wilder
jwilder@stonewallkitchen.com
jwilder@stonewallkitchen.com
0
Comments
-
I think you will have many more responses if you ask this in a .NET forum.0
-
Hi jwilder,
See my sample code. I link with customer ws and datagrid view. But if you want to control page up and page down you need to do a lot of things. If you want to know go to http://vbcity.com/' ''Connect to WS service Dim service As New CustomerList_Service() service.UseDefaultCredentials = False service.Url = "http://localhost:7047/DynamicsNAV/WS/CRONUS Singapore Pte. Ltd/Page/CustomerList" service.Credentials = New NetworkCredential("administrator", "admin", "") ' ''Filter Customer Dim filterArray As New List(Of CustomerList_Filter)() Dim CustFilter As New CustomerList_Filter() CustFilter.Field = CustomerList_Fields.No CustFilter.Criteria = "" filterArray.Add(CustFilter) ' ''Binding Customer List Dim CustLst As CustomerList() = service.ReadMultiple(filterArray.ToArray(), Nothing, 100) DataGridView1.DataSource = CustLst
1. Create DataGrid View in your vb.net form.
2. DataGrid View bind with your webservice. And then copy and past my code.
Best Regards,
YukonMake Simple & Easy0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions