In this post, Get the row index using LINQ in C# based on column
Ex :
int rowindex = new System.Data.DataView(datatable).ToTable(false, new[] { "Columname" })
.AsEnumerable()
.Select(row => row.Field<string>("Columname")) .ToList()
.FindIndex(col => col == variablewithvalue);
Happy Coding:)
Ex :
int rowindex = new System.Data.DataView(datatable).ToTable(false, new[] { "Columname" })
.AsEnumerable()
.Select(row => row.Field<string>("Columname")) .ToList()
.FindIndex(col => col == variablewithvalue);
Happy Coding:)
Techinuthan: How To Get Row Index Using Linq In C? >>>>> Download Now
ReplyDelete>>>>> Download Full
Techinuthan: How To Get Row Index Using Linq In C? >>>>> Download LINK
>>>>> Download Now
Techinuthan: How To Get Row Index Using Linq In C? >>>>> Download Full
>>>>> Download LINK