Archive for the Category database

 
 

Scott doesn’t use datasets in ASP .NET Applications

This post by Scott Mitchell points his article where he discusses why he doesn’t use Datasets in ASP.NET Applications.

"According to A Speed Freak’s Guide to Retrieving Data in ADO.NET, the DataReader is roughly thirty times more performant than the DataSet."

[ Via Eric Wise's blog ]

How to programmatically scroll a DataGrid to a given row?

using System.Windows.Forms;
 
namespace Devintelligence
{
  /// <summary>
  /// ScrolledDataGrid.
  /// </summary>
  public class ScrolledDataGrid : DataGrid
  {
    public ScrolledDataGrid()
    {
    }
 
 
    /// <summary>
    /// scroll the grid to a particular row
    /// </summary>
    /// <param name="rowNumber"></param>
    public void ScrollTo(int rowNumber)
    {
      if (this.DataSource != null)
      {
        GridVScrolled(this, new ScrollEventArgs(ScrollEventType.LargeIncrement, rowNumber));
      }
    }
  }
}

Object/Relation Mappers and Code Generators


Page 4 of 41234