ARTICLE

DataView in ADO.NET

Posted by Dinesh Beniwal Articles | ADO.NET in VB.NET February 10, 2010
In this article I will explain about understanding DataView in ADO.NET.
 
Reader Level:

A DataView represents a view a DataSet object. You can set filters on the data or sort on data in the DataSet through different DataViews and produce different views of the data. For example, you can create a DataSet with three tables and create three different DataView objects for each table. Once you have a Data View object, you can attach it with any data-bound Control. Such as a DataGrid or a ComboBox control using data-bound control using data- bound control's DataSource property.

To create a DataView at design-time, drag the DataView from Toolbox > Data onto your form. Then create a DataSet object and set the DataView's table property to a table in the typed DataSet (see figure 4-55).

Figure-4.55.gif

Figure 4-55. Data View properties window

Conclusion

Hope this article would have helped you in understanding DataView in ADO.NET. See my other articles on the website on ADO.NET.

Login to add your contents and source code to this article
Article Extensions
Contents added by sadegh razavi on Jul 08, 2010
share this article :
post comment
 

Is these controls will exported with exe file

Posted by debayan nanda May 04, 2010
Nevron Diagram
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor