Skip to Main Content
Visual Basic 2015 Unleashed
book

Visual Basic 2015 Unleashed

by Alessandro Del Sole
July 2015
Intermediate to advanced content levelIntermediate to advanced
1300 pages
87h 27m
English
Sams
Content preview from Visual Basic 2015 Unleashed

Strongly Typed Data Controls and Model Binding

In the real world, you often need to perform data-binding at runtime. For example, if you have a GridView control like in the previous sample application, you can perform runtime binding by assigning the DataSource property and then invoking the DataBind method explicitly like this:

Me.GridView1.DataSource = northwind.OrdersMe.GridView1.DataBind()

ASP.NET 4.6 inherits some goodies from its predecessor to help you write both declarative and runtime data-binding code, offering strongly typed data controls and model binding.

Strongly Typed Data Controls

When data-binding at runtime, it is useful to specify the type of the data to which the control is bound. Visual Studio ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning Visual Basic 2015

Beginning Visual Basic 2015

Bryan Newsome

Publisher Resources

ISBN: 9780134196664Purchase book