How to read specific field value when using LINQ to object to fetch data

  • Thread starter Thread starter Sudip_inn
  • Start date Start date
S

Sudip_inn

Guest
see ny code

var data = dtFilterDataFromAllData.AsEnumerable().Where(x => x.Field<string>("Tab").ToString().Trim() == strBRTab
&& x.Field<string>("Broker Items").ToString() == strBRLineItem
&& x.Field<string>("Row").ToString().Trim() == RowNumber)
.Select(w => new { LinkText = w.Field<string>("LinkedItemList"), AllowBlank = w.Field<string>("Allow Blank in Calc.") }).ToList();
where i am using LINQ on datatable to select data for two fields called LinkedItemList & Allow Blank in Calc.


without using foreach how to read data from data variable like array like access ?

how to read data like data["LinkedItemList"]

please tell me the way without foreach or for. thanks

Continue reading...
 
Back
Top