There is a Gridview Control in the tmplate field of another GridView Control.

    For instance,a gridview displays the information of the  students in a class.A table is recording the information except their mark.There is another table recording the mark of the students whose foreign key is the primary key of the previous table.

 

string strSQLconnection="..................";

SqlConnection sqlCononection=new SqlConnection(strSQLconnection);

SqlCommand sqlCommand=new SqlCommand("select * from stuendent where classID=1",sqlConnection);

SqlConnection.Open();

SqlDataReader reader=sqlCommand.ExecuteReader();

GridViewstudent.DataSource=reader;

GridViewstudent.DataBind();

 

What should I do for the GridView included to display the data from the table of mark?

 

My English is not good.Sometimes,it may be difficult for you to understand my thread.At that rate,please notice me.

Thanks!

0
jack2006
9/27/2008 3:52:40 AM
asp.net.presentation-controls 72751 articles. 3 followers. Follow

1 Replies
1215 Views

Similar Articles

[PageSpeed] 7

 

Hi Jack,

Go Through Folliwing link..

 

http://www.codeproject.com/KB/aspnet/EditNestedGridView.aspx
~ Mark As Answer If UseFull ~

Kaushal.
0
kaushal
9/27/2008 6:51:15 AM
Reply:

Web resources about - There is a Gridview Control in the tmplate field of another GridView Control. - asp.net.presentation-controls

GridView SelectedItem Binding Gotcha in WinRT
Last night when I was doing some WinRT hacking I was trying to setup databinding to the selected item in the GridView control and I ran into ...

CNW Group
Home Services Beyond the Wire About CNW Financials Webcasts Events My CNW All News Releases Advanced Search Gridview Latest News Releases All ...

CNW Group
... Services Beyond the Wire About CNW my CNW CNW Access CNW Directories Financials Webcasts Events my CNW All News Releases Advanced Search Gridview ...

CNW Group
Home Services Beyond the Wire About CNW Financials Webcasts Events My CNW All News Releases Add a Filter Gridview Latest News Releases All Today ...

New CmdLets of Powershell 2.0
New CmdLets of Powershell 2.0

Price Drop: Softbox
... objects- create product reflection- changing the background with something more interestingUse it as:- softbox- honeycomb softbox- gridview ...

Profile.aspx: ASP Alliance
.NET,ASP,ASP.NET,SQL,XML,HTML,ADO,ADO.NET,JavaScript,JScript,CSharp,VBScript and VB tutorials from AspAlliance.

Quick Answers - CodeProject
Questions - Free source code and tutorials for Software developers and Architects.; Updated: 25 Oct 2012

DotNetKicks.com - Upcoming stories
DotNetKicks.com is a community based news site edited by our members. It specialises in .NET development techniques, technologies and tools including ...

View Features - ExtendASP
Call 847-681-9827 or Request a Demo View Features Testimonials Pricing About Us Coming Soon ExtendASP exposes every feature, more than any other ...

Resources last updated: 12/1/2015 2:14:05 PM