Did You Know : Using SkipWhile() feature of LINQ

by Santosh 12/4/2010 8:37:00 AM
SkipWhile() a function that bypass the elements from the sequence till the condition becomes true and will return the rest of the elements of the sequence. Example 1 : XML data <Products> <Product Name="Football"></Product> <Product Name="Bat"><... [More]


Insert functionality in GridView – Part 2

by rahul 7/10/2009 8:45:07 PM
In my previous post I have shown that if you have no records in your table and try to bind that table to a grid view, you will get nothing. Not even the header rows. To get rid of this issue, there is a very simple way. 1. Select Edit Templates 2. Switch over to EmptyDataTemplate 3. Drag an... [More]


Missing Insert functionality in GridView – Part 1

by rahul 7/6/2009 12:04:28 PM
I have never been a very big fan of “drag and drop, do data binding… get your application up in no time, and rejoice” approach, but sometimes when I am really lazy I go that route too. So, today was that day… I had a very simple requirement. Let’s take a look at the two tables below… one is Course... [More]


System.InvalidOperationException: Sequence contains no elements

by rahul 3/26/2009 8:56:00 AM
While using LINQ, let’s say you decide to do something similar to the following… NorthWindDataContext dc = new NorthWindDataContext(); Product p = dc.Products.First(p1 => p1.ProductName.StartsWith("My New Product")); if (p == null) return; dc.Products.... [More]


LINQ Performance - Part 1 - LINQ to Collection

by rahul 1/27/2009 2:30:23 PM
There are multiple benchmarking results already out there for LINQ. The reason why I am doing this again is the because I have heard multiple times that the latest version of LINQ contains a lot of improvements. My current configuration is... Windows Server 2008 Enterprise SP 1Visual Studio 2008 SP... [More]


Rahul Soni

Rahul Soni  Twitter

 LinkedIn

 Facebook

 Email me



Vivek Kumbhar

Vivek Kumbhar  Twitter

 LinkedIn

 Facebook

 Email me


Stack Exchange

profile for Vivek at Server Fault, Q&A for system administrators and IT professionals

profile for Rahul Soni at Stack Overflow, Q&A for professional and enthusiast programmers

Calendar

<<  June 2013  >>
MoTuWeThFrSaSu
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

View posts in large calendar

All Items
Sign in

Visit Microsoft's Site

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2013, Rahul Soni

Powered by BlogEngine.NET 1.4.5.0