Browse by Tags

Related Posts

  • Summing Columns in a GridView

    Level: Beginner. After getting information from a database, you may also want summary information about the data (totals, averages, counts, etc.). This can be done using SQL group by clauses or, it can be done while binding to a GridView. I've seen other examples of this but they seem more complicated...
    Posted to Steve Wellens (Weblog) by SGWellens on 10-31-2008, 12:00 AM
    Filed under: ASP.NET, C#, GridView
  • GridView RowDataBound Alternating Row RowState issue

    This was pissing me off for a good hour: RowDataBound event after you call edit on a row, I was checking for this row's state like this: e.Row.RowState == DataControlRowState .Edit this worked fine with rows No 1, 3, 5... (non-alternating rows), however with alternating rows of same GridView it did NOT...
    Posted to Object reference not set to an instance of an object (Weblog) by funky_rus on 10-27-2008, 12:00 AM
    Filed under: ASP.NET, ASP .NET, GridView, C#, .NET, e.Row.RowState, DataControlRowState, RowState
  • DataControls 101 Part 2: Why you should love Datasource controls

    I've been scouring the forums recently trying to find problems people encounter when using the data controls. One thing that I found is mostly asked for but is kind of a hidden art: How do I use the GridView/ListView/DetailsView.... without a Datasource control? (and still get all the fancy features...
    Posted to Unhandled Exception (Weblog) by davidfowl on 10-21-2008, 12:00 AM
    Filed under: ASP.NET, C#, DataSource Controls, GridView
  • Working with the GridView and the System.Data.Linq.Binary Type

    I'm working with a database table that has a RowVersion field defined as a TimeStamp data type.  The TimeStamp field is there to add concurrency into the application to ensure a row hasn't changed while a user is trying to update or delete it.  When the TimeStamp field value is queried and...
    Posted to Dan Wahlin's WebLog (Weblog) by dwahlin on 05-14-2008, 12:00 AM
    Filed under: ASP.NET, .NET, C#, LINQ, GridView
  • Exporting Dataset as CSV

    Hi Everyone, Below given an easy way to export data from a dataset as CSV(comma seperated values) . At first, it converts the datatable to html table format and then writes data as output stream. We need to set the Content-Type of Response object as Excel format and add the filename to be streamed on...
    Posted to Runtime Debugger (Weblog) by kannan.ambadi on 03-25-2008, 12:00 AM
    Filed under: asp.net, c#, csv, Response, Dataset, GridView, export
  • A more elegant solution to display GridView header and footer when the data source is empty.

    I think the need to always show the header and footer of a GridView is pretty common. When I first ran into this problem, I went to Google and found lots of content about this. Some suggest tampering with the data source to add an extra row if it’s empty. Others show overriding the CreateChildControls...
    Posted to Joe Wrobel (Weblog) by robolize on 01-30-2008, 12:00 AM
    Filed under: GridView, ASP.NET, C#
Page 1 of 1 (6 items)
Microsoft Communities