public GetPreviewByID ( int id ) : SearchResultPreview | ||
id | int | |
return | SearchResultPreview |
public SearchResultPreview GetPreviewByID(int id)
{
int headerId = GetIndexOfID();
foreach (Row r in Rows)
{
if (r.Values.ToList().ElementAt(headerId).Equals(id)) return r.PreviewItem;
}
return null;
}