Re: Parent Control!
- From: "Patrick.O.Ige" <naijacoder@xxxxxxxxxxx>
- Date: Mon, 16 Jan 2006 16:39:44 +1100
Adam for you reference try this page to translate
http://www.developerfusion.co.uk/utilities/convertvbtocsharp.aspx
Hope that helps
Patrick
"Adam J Knight" <adam.jknight@xxxxxxxxxxxxxxx> wrote in message
news:eH$IfpcGGHA.208@xxxxxxxxxxxxxxxxxxxxxxx
> Hi all,
>
> Below i have a function which is executed when a check boxes 'CHECKED'
> property is changed.
> This checkbox is contain within a datagrid item in a datagrid.
>
> What i am after is how to retrieve the datagrid item in which the checkbox
> resides.
>
> I have done this in a previous project using visual basic...
>
> eg: dgEmps.DataKeys(CType(sender.Parent.Parent, DataGridItem).ItemIndex)
>
> What i need is the c# equivalent:
>
> Any help appreciated!!!
>
> public void chkEnrolled_Changed(object sender, System.EventArgs e)
> {
>
> Response.Write(dgEnrollments.DataKeys[????]);
>
> }
>
>
.
- References:
- Parent Control!
- From: Adam J Knight
- Parent Control!
- Prev by Date: Re: scope_identity() issues.
- Next by Date: Re: Can't fetch the xml: roots element are missing
- Previous by thread: Parent Control!
- Next by thread: GridView Control in ASP.NET 2.0 is updating/deleting only via SqlDataSource
- Index(es):
Relevant Pages
|