Tags

, ,

Datatable dt = ???;

 dt.DefaultView.Sort = SortByName;

            int i = 1;
            foreach (DataRowView da in dt.DefaultView)
            {
               _results.Add(CreateEntry(i, DateTime.Today, da[“Title”].ToString(),
                            da[“Path”].ToString(), da[“Author”].ToString(), da[“HitHighlightedSummary”].ToString()));
               i++;
            }

Advertisements