21. May 2013
Asp.Net , C# , LINQ
There could be many ways to update or change the serial number value in existing list. Using LINQ, we can update the serial number without using our normal loop. This can be done with help of Lambda Expression as below -
int rowIndexNumber = 0;
rowItem.RowSerialNumber = rowIndexNumber;
The above code can be shorter and written in more efficient but here it is for easy understanding.