Visual studio feeds

All Visual Studio blogs in one place


Enter your email address:

Delivered by FeedBurner

Increase your website traffic with



Anti-spam: How many eyes has a typical person?

Follow us on FB


GridView from LINQ to Objects

AddThis Social Bookmark Button
One of the greatest benefits I’ve found in simple web output in ASP.NET is the GridView.  I regularly use it to display data from objects or databases where the output can simply be shown in a grid form (similar to instances where I would deliver a read-only spreadsheet). I attach the GridView to the inside of a
on the aspx page:
  A simple, bulk method of getting the data into the GridView is with the GridView.DataSource property. A GridView.DataSource must be either an IListSource, IEnumerable, or IDataSource. A natural partner to the GridView.DataSource property is the
  Example: Using the WebService located at: .
I chose this WS, because it returns a DataSet (easy example).
1: using System; 2: using System.Collections.Generic; 3: using System.Data; 4: using System.Linq; 5: using System.Web.UI.WebControls; 6:   7: using WS_HOLIDAY; 8: public partial class _Default : System.Web.UI.Page 9: { 10: protected void Page_Load(object sender, EventArgs e) {} 11:   12: ...(Read whole news on source site)

Home : Blog List : Tom Hines ( : GridView from LINQ to Objects