How can I access a TextBox from a DataGrid's Footer?

1 view
Skip to first unread message

Viloraj

unread,
Nov 9, 2005, 5:12:57 AM11/9/05
to techdot...@googlegroups.com
Hi friends,
 
I have a TextBox control in DataGrid's Footer( 4th column of the grid)
 
How can I access this TextBox in codebehind?
 
(Plz send a bcc to Victor.I...@lntinfotech.com)


regards,
 
Victor LourthuRaj.K


Yahoo! FareChase - Search multiple travel sites in one click.

BabuLives

unread,
Nov 9, 2005, 5:38:03 AM11/9/05
to .NetIndia
in Databound event,

{
if(e.Item.ItemIndex==-1 & e.Item.ItemType==ListItemType.Footer)
{
TextBox t1=(TextBox)e.Item.FindControl("txtFerVal");
}
}

Regards,
Satheesh

Sudhakar E

unread,
Nov 10, 2005, 8:13:38 AM11/10/05
to Techdot...@googlegroups.com
Hi,
 
use depends on the control what u r using....

strInvoiceNo = ((Label)grdConfirmation.Items[grdCount].FindControl(

"labInvoiceNo")).Text;

partyname=((Label)grdConfirmation.Items[grdCount].FindControl(

"CustomerName")).Text;

BillAmount=

Convert.ToDecimal(((Label)grdConfirmation.Items[grdCount].FindControl("Amount" )).Text);

CostID=

Convert.ToInt64 (((HtmlInputHidden)grdConfirmation.Items[grdCount].FindControl("hiddgrdcostcenter" )).Value);

AnalysisID=

Convert.ToInt64 (((HtmlInputHidden)grdConfirmation.Items[grdCount].FindControl("hiddenAnalysisCode" )).Value);



 
Reply all
Reply to author
Forward
0 new messages