You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
534 B

using System;
using System.Collections.Generic;
/// <summary>
/// Summary description for GridViewSummaryList
/// </summary>
public class GridViewSummaryList : List<GridViewSummary>
{
public GridViewSummary this[string name]
{
get { return this.FindSummaryByColumn(name); }
}
public GridViewSummary FindSummaryByColumn(string columnName)
{
foreach (GridViewSummary s in this)
{
if (s.Column.ToLower() == columnName.ToLower()) return s;
}
return null;
}
}