Hi Greg Clouston,
Thanks for your interest in Syncfusion Products.
Please refer the below view code snippets for Grid in VB.
<% 'Define the grid and enable the require features like paging and sorting
Dim gridbuilder = Html.Grid(Of MvcApplication3.employee)("Grid1").Datasource(Model).EnablePaging().EnableSorting()
'add grid columns using gridbuilder
gridbuilder.Column(Function(cols) cols.Add(Of Integer)(Function(c As MvcApplication3.employee) c.emp_id).HeaderText("Employee ID"))
gridbuilder.Column(Function(cols) cols.Add(Of String)(Function(c As MvcApplication3.employee) c.fname).HeaderText("Employee Name"))
gridbuilder.Column(Function(cols) cols.Add(Of Integer)(Function(c As MvcApplication3.employee) c.job_id).HeaderText("Job Id"))
gridbuilder.Column(Function(cols) cols.Add(Of Date)(Function(c As MvcApplication3.employee) c.hire_date).HeaderText("Hire Date"))
'Render the grid by using Render()
gridbuilder.Render()
%>
Refer the below code snippets for controller.
Function Index() As ActionResult
Dim northwind As PUBSEntities3 = New PUBSEntities3
Return View(northwind.employees)
Return View()
End Function
_
Function Index(ByVal args As PagingParams) As ActionResult
Dim northwind As PUBSEntities3 = New PUBSEntities3
Dim data As IEnumerable = Nothing
data = northwind.employees
Return data.GridActions(Of employee)()
End Function
Please let us know if you have any queries.
Regards,
Krishnaraj D