Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 30th, 2012  |  syntax: None  |  size: 0.18 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Binding Tuples to a GridView
  2. private List<Tuple<int, string>> GetEmpDetails()
  3. {
  4.     return (from r in dataContext.Emp
  5.     select new Tuple<int, string>(r.ID, r.Name)).ToList();
  6. }