Embedding a DataGrid in a DataGrid
Details Related Types
Site:  DotNetJunkies
Original URL:  http://www.dotnetjunkies.com/tutorials.aspx?tutorialid=138
Summary:
Well, first off...thanks for the compliment. Now, let's cut to the chase. What you are asking, adding a TemplateColumn to an embedded DataGrid, can certainly be done. We are going to take a slightly different approach for this however. In this tutorial I will show you how to embed a DataGrid in a DataGrid, with a TemplateColumn in the embedded DataGrid. The design for the embedded DataGrid will actually be done in the Web Form, and we will call a method in our code behind class to populate the embedded DataGrid.
System.Data.DataSet
System.Data.DataTable
System.Data.DataView
System.Data.SqlClient.SqlDataAdapter
System.EventArgs
System.Web.UI.DataBinder
System.Web.UI.Page
System.Web.UI.WebControls.BoundColumn
System.Web.UI.WebControls.DataGrid
System.Web.UI.WebControls.GridLines
System.Web.UI.WebControls.HyperLinkColumn
System.Web.UI.WebControls.TemplateColumn
System.Web.UI.WebControls.VerticalAlign
System.Windows.Forms.DataGrid
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com