Parent Control!
Tech-Archive recommends: Fix windows errors by optimizing your registry
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) - DataGrid & Checkbox Template Columns
... have two template columns - one with a checkbox and one with a textbox. ... checking the boxes - the boxes don't autopostback, ... I can find now way of iterating through the datagrid rows to check ... (microsoft.public.dotnet.framework.aspnet.webcontrols) |
|