VisualStudioFeeds

All Visual Studio blogs in one place

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
System.Data.DataSet.
  Example: Using the WebService located at: http://www.holidaywebservice.com/Holidays/US/USHolidayService.asmx .
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)

Search

Subscribe

Enter your email address:

Delivered by FeedBurner

Increase your website traffic with Attracta.com

Contact

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

Follow us on FB

Home : Blog List : Tom Hines (writinThatCode.com) : GridView from LINQ to Objects