var index=0; var _Col_Name_lst = (from DataColumn x in _hdr[0].Table.Columns select new { RowIndex = index++, ColumnName = x.ColumnName}).ToArray();
RowIndex
var result = _Col_Name_lst.Select((s, i) => new { Pos = i, text =s}) .Where(currentItem => currentItem.text.ToUpper()=="AZEER") //select matching item only .Select(n=> n.Pos);// select only what you want, i.e. just position of item
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)