Meaning of following line:
DataRow Row = DTTable.Select().Where(x => x.ItemArray[0].ToString() == item.Attributes["name"].Value).FirstOrDefault();
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question.
Pradeep ShetPosted Jul 30, 2014, 1:31 AM
DataRow Row = DTTable.Select().Where(x => x.ItemArray[0].ToString() == item.Attributes["name"].Value).FirstOrDefault();
The above piece of code says,
-Itterate through the DTTable.Select() which return the array of DataRows
-Apply Where clause saying check the first column within the each item of array and match it with item.Attributes["name"].Value
- If you get any row then return only first row else return default i.e-null
Hope this is what you required. Plz mark it answered if it helped you
VulpesPosted Jul 29, 2014, 2:52 PM