走訪rows
dt.Rows.Cast<DataRow>()
走訪columns
dt.Columns.Cast<DataColumn>()
public static int IndexOf<T>(this IEnumerable<T> list, T obj) where T : class
{
return list.TakeWhile(x => x != obj).Count();
}
var list=db.xxx.Where(...).AsEnumerable();
foreach (var a in list)
list.IndexOf(a) <= 物件順位
範例: nextTick(() => document.querySelector('input').showPicker()); ※僅支援現代瀏覽器