Tuesday 31 March 2015

How to get Row Index using LINQ in C#?

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:)

1 comment:

  1. Techinuthan: How To Get Row Index Using Linq In C? >>>>> Download Now

    >>>>> 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

    ReplyDelete