I am having a problem passong in the categoary id into the child datagrid.
I want the page to display Reviwers By caetogaries.
For Ex.
CATEGOARIES REVIWERS
Cat1 PAUL
JIM
TOM
Cat2 Nancy
Perl
I tried declarng: ApplicationType at = (ApplicationType)e.Item.DataItem; so I can use at to pass in the Id
but when I type in at the categoary does not show up.
also tried: e.item.dataitem does not give me categoaryid.
I did decare this:
private void InitializeComponent()
{
this.dgRevCatDisplay.ItemCommand += new System.Web.UI.WebControls.DataGridCommandEventHandler(this.dgRevCatDisplay_ItemCommand);
this.dgRevCatDisplay.ItemDataBound += new System.Web.UI.WebControls.DataGridItemEventHandler(this.dgRevCatDisplay_ItemDataBound);
this.Load += new System.EventHandler(this.Page_Load);
}
Here is my code:
ApplicationType at = (ApplicationType)e.Item.DataItem;
//MemberAppController mac = new MemberAppController();
DataGrid dg = (DataGrid)e.Item.Cells[1].FindControl("Reviewer");
dg.DataSource = ocrc.GetByOnlineCaseCategory(); // THIS IS WHERE I HAVE THE PROBLEM PASSIN THE CATEGOARY ID
dg.DataBind();
}
Here is my HTML:
<alternatingitemstyle cssclass="NormalAlternating"></alternatingitemstyle>
<headerstyle cssclass="NormalBold"></headerstyle>
<columns>
<asp:boundcolumn visible="true" datafield="Id"></asp:boundcolumn>
<asp:buttoncolumn text="Select" datatextfield="Description" headertext="Categoary" commandname="Select"
itemstyle-verticalalign="Top"></asp:buttoncolumn>
<asp:templatecolumn headertext="Reviewers">
<itemtemplate>
<asp:datagrid id="Reviewer" runat="server" cssclass="Normal" autogeneratecolumns="False" gridlines="None"
showheader="False">
<columns>
<asp:boundcolumn datafield="FirstName"></asp:boundcolumn>
<asp:boundcolumn datafield="LastName"></asp:boundcolumn>
</columns>
</asp:datagrid>
</itemtemplate>
</asp:templatecolumn>
I want the page to display Reviwers By caetogaries.
For Ex.
CATEGOARIES REVIWERS
Cat1 PAUL
JIM
TOM
Cat2 Nancy
Perl
I tried declarng: ApplicationType at = (ApplicationType)e.Item.DataItem; so I can use at to pass in the Id
but when I type in at the categoary does not show up.
also tried: e.item.dataitem does not give me categoaryid.
I did decare this:
private void InitializeComponent()
{
this.dgRevCatDisplay.ItemCommand += new System.Web.UI.WebControls.DataGridCommandEventHandler(this.dgRevCatDisplay_ItemCommand);
this.dgRevCatDisplay.ItemDataBound += new System.Web.UI.WebControls.DataGridItemEventHandler(this.dgRevCatDisplay_ItemDataBound);
this.Load += new System.EventHandler(this.Page_Load);
}
Here is my code:
ApplicationType at = (ApplicationType)e.Item.DataItem;
//MemberAppController mac = new MemberAppController();
DataGrid dg = (DataGrid)e.Item.Cells[1].FindControl("Reviewer");
dg.DataSource = ocrc.GetByOnlineCaseCategory(); // THIS IS WHERE I HAVE THE PROBLEM PASSIN THE CATEGOARY ID
dg.DataBind();
}
Here is my HTML:
<alternatingitemstyle cssclass="NormalAlternating"></alternatingitemstyle>
<headerstyle cssclass="NormalBold"></headerstyle>
<columns>
<asp:boundcolumn visible="true" datafield="Id"></asp:boundcolumn>
<asp:buttoncolumn text="Select" datatextfield="Description" headertext="Categoary" commandname="Select"
itemstyle-verticalalign="Top"></asp:buttoncolumn>
<asp:templatecolumn headertext="Reviewers">
<itemtemplate>
<asp:datagrid id="Reviewer" runat="server" cssclass="Normal" autogeneratecolumns="False" gridlines="None"
showheader="False">
<columns>
<asp:boundcolumn datafield="FirstName"></asp:boundcolumn>
<asp:boundcolumn datafield="LastName"></asp:boundcolumn>
</columns>
</asp:datagrid>
</itemtemplate>
</asp:templatecolumn>