S
Skandy
Hello All:
I'm stuck with this. I'm trying to obtain the SelectedValue property
for a combobox control on UserControl using reflection.
So I write:
PropertyInfo pi =
objControl.GetType().GetMember("cmbComplex").GetType().GetProperty("SelectedValue");
This always returns a value null, and throws an exception hence.
When I debug through this using QuickWatch, I get to see that
objControl.GetType().GetMember("cmbComplex") evaluates to a ComboBox
indeed.
But why is that I'm unable to see the SelectedValue Property through
this?
Am I missing something obvious?
TIA.
Sk&y;
I'm stuck with this. I'm trying to obtain the SelectedValue property
for a combobox control on UserControl using reflection.
So I write:
PropertyInfo pi =
objControl.GetType().GetMember("cmbComplex").GetType().GetProperty("SelectedValue");
This always returns a value null, and throws an exception hence.
When I debug through this using QuickWatch, I get to see that
objControl.GetType().GetMember("cmbComplex") evaluates to a ComboBox
indeed.
But why is that I'm unable to see the SelectedValue Property through
this?
Am I missing something obvious?
TIA.
Sk&y;