Just starting to look into using LinqDataSource for a GridView and I’m looking for a few more examples on how to set up my data source.
I am hoping later on to use it against a SharePoint List but for now I’m simply after some detailed examples for a class that I can retrieve data from and update.
Here is an example class from MS. I just after more than one example so i have better idea how this work.
A Simple example that is known to work and is a little more complicated would be great
public class MovieLibrary
{
string[] _availableGenres = { "Comedy", "Drama", "Romance" };
public MovieLibrary()
{
}
public string[] AvailableGenres
{
get
{
return _availableGenres;
}
}
}
Cheers
I’m using LinqDataSource with SPGridView here is my code.
In the LinqDataSource Selecting event is where the data binding happened