As I mentioned in the previous post, with Insert, Update and Delete methods but without a Select method, LinqDataSource control looks just like a chair with only three legs! Specially when it comes to situations that you have to retrieve records programatically.
I probed alot to see if there is a work around for this problem [...]
Posts Tagged ‘LinqDataSource’
LinqDataSource with Select method!
Posted in ASP.NET, C#, tagged C#, fetch, Linq, LinqDataSource, LinqDataSourceView, Method, on demand, programatically, Select on September 28, 2008 | 5 Comments »
Sorting and ordering Linq results with string field names
Posted in ASP.NET, C#, tagged Field, IEnumerable, IQueryable, Linq, LinqDataSource, name, Order, Sort, SortExpression, String on September 10, 2008 | 4 Comments »
Hi,
Today at work, I had to bind a GridView control to a stored procedure through a LinqDataSource. To do this, I used LinqDataSource’s Selecting event. For example :
protected void LinqDataSource1_Selecting(object sender, LinqDataSourceSelectEventArgs e)
{ e.Result = CustomersBiz.GetAll(); }
If we bind a grid to a store procedure, the grid and LinqDataSource won’t support sorting automatically. Therefore, to [...]