G
Guest
Hi,
I have a dynamically built datagrid. I have a checkbox and a label in each
cell. When the checkbox is ticked something should happen, using the label in
the same cell as the checkbox. But I do not know which column it will be
ticked in. Obviously I can get the checkbox using sender, and I can get the
datagrid item using what I've done below. but my third line is where I am
stuck. Can anyone help?
CheckBox cb = (CheckBox)sender;
DataGridItem dgItem = (DataGridItem)(cb.NamingContainer);
intSomeID = ((Label)dgItem.cell i am within.Controls[1]).Text
I have a dynamically built datagrid. I have a checkbox and a label in each
cell. When the checkbox is ticked something should happen, using the label in
the same cell as the checkbox. But I do not know which column it will be
ticked in. Obviously I can get the checkbox using sender, and I can get the
datagrid item using what I've done below. but my third line is where I am
stuck. Can anyone help?
CheckBox cb = (CheckBox)sender;
DataGridItem dgItem = (DataGridItem)(cb.NamingContainer);
intSomeID = ((Label)dgItem.cell i am within.Controls[1]).Text