When I try e.Row.FinControl("gvStudentList"), I get a message saying that gvStudentList is not available int he current context. The error message is valid as I am looking for a GridViw in the row of the GridView. What I actually need is the ability to access the templatefield itself.
Ideas...
I have a gridview inside a datalist. In this gridview I have a templatefield.
<asp:DataList ID="dlParent" runat="server" OnItemDataBound="dlParent_ItemDataBound">
<ItemTemplate>
<asp:GridView ID="gvStudentList" runat="server" AutoGenerateColumns="false"...
Thats what I thought. I keep getting an error -
The name 'gvStudentList' does not exist in the current context
protected void gvStudentList_RowDataBound(object sender, GridViewRowEventArgs e)
{
//data row
if (e.Row.RowType == DataControlRowType.DataRow)
{...
I have the following structure on my aspx page:
<asp:Repeater id="myRepeater" runat="server" OnItemDataBound="myRepeater_ItemDataBound">
<ItemTemplate>
<asp:GridView ID="gvStudentList" runat="server" AutoGenerateColumns="false" >...
Actually I did think of the nested gridview. I am unsure how to implement it.
In the itemdatabound event of the outer gridview, I can bind the dataset to the inner gridview. However, how do I separate the inner gridviews based on Col1?
I am new to .NET, so please pardon my ignorance...
I have a dataset of the following nature:
Col1 Col2 Col3
--------------
ClassA 10 12
ClassA 13 11
ClassA 18 22
ClassA 20 42
ClassB 12 34
ClassB 32 27
ClassB 13 51
ClassB 12 32
ClassC 16 65
ClassC 12 33
I want the gridview to have 3 separate HTML tables on the web page - one for rows...
Would it be possible to indicate where I'd have to use the RegisterStartUpScript? Page_Load?
As of now I am capturing the list of checkboxes checked in the imagebutton_click event handler.
The flow of control is as follows:
Select Checkboxes -> Click imagebutton -> page_load ->...
Hello,
I have a rather tricky problem and I have run out of ideas.
I have a page with a datalist that has checkboxes in it. At the bottom of the page, I have an imagebutton (not part of the datalist). When the imagebutton is clicked, I need to find out the checkboxes selected by the user, add...
Hello,
I have a rather tricky problem and I have run out of ideas.
I have a page with a datalist that has checkboxes in it. At the bottom of the page, I have an imagebutton (not part of the datalist). When the imagebutton is clicked, I need to find out the checkboxes selected by the user, add...
Hello,
I am a .NET newbie and I have been trying to work out an exercise.
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.