Re: Parent Control!



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[????]);
>
> }
>
>


.



Relevant Pages

  • DataGrid Question
    ... existing in a directory on the server in a DataGrid. ... CheckBox should be "chkJOE*D". ... Dim dInfo As DirectoryInfo ... Dim strListItem As String ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Checkbox in datagrid....
    ... Because i am acutally populating my datagrid when some property is ... Try moving the populateDataGrid step to the page_init. ... I have a datagrid which has one of the columns as checkbox. ... private void Page_Load ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • NEWBIE: DataGrid CheckBox Question
    ... to fill a DataGrid with an ArrayList of Project objects in a Windows ... desired boolean checkbox in the first column. ... select is the boolean that I set to false for each Project object. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Force PostBack
    ... you could also have the checkbox computation outside of this event. ... > Il se trouve que Patrice a formulé: ... > In this same page I have a button to clear a textbox: ... > When I click on this button, the textbox is cleared and my datagrid ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Help needed
    ... change the ckLegal to what ever your checkbox is called.. ... might require some tweaking with the control names... ... > I am using a datagrid control. ... If i use the combobox out of the ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)