Tuesday, October 25, 2011
Display List Data with SPGridView
Display List Data with SPGridView
*************************************
asp:GridView ID="GridView1" runat="server"
asp:GridView
SPDataSource
SharePoint:SPDataSource runat="server" DataSourceMode="List" id="DataSrc1" SharePoint:SPDataSource
protected void Page_Load(object sender, EventArgs e)
{
SPSite mysite1= SPContext.Current.Site;
SPWeb myweb1= mysite1.OpenWeb();
SPList list = myweb1.Lists["ParentList"];
DataSrc1.List=list;
GridView1.DataSource =DataSrc1;
GridView1.DataBind(); }
*******************************
SPDataSource - every SharePoint developer's friend (part 1)
SPDataSource and Rollups with the Data View
SPDataSource
Deleting all items from lists
How To Customize Current Navigation (Left Navigation) in SharePoint 2010 To Show Multiple Levels?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment