W
Wonko the Sane
Hello,
I have a custom control (not a listbox or other hierarchical or list
control) that I would like to bind to a specific row and column from a
DataTable.
Each row of the datatable will have columns like PropertyName, IsEnabled,
CurrentValue, etc.
In my control, I want to show the CurrentValue of a property with a
PropertyName of "PropertyX" if IsEnabled is true.
I can see binding the table to the control, and having a converter that
takes that binding, and selects a row based on a ConverterParameter that
contains the property name. However, with a dozen or more of these controls
on a page, that could get a bit messy.
Is there a more elegant way of doing this?
Thanks,
WtS
I have a custom control (not a listbox or other hierarchical or list
control) that I would like to bind to a specific row and column from a
DataTable.
Each row of the datatable will have columns like PropertyName, IsEnabled,
CurrentValue, etc.
In my control, I want to show the CurrentValue of a property with a
PropertyName of "PropertyX" if IsEnabled is true.
I can see binding the table to the control, and having a converter that
takes that binding, and selects a row based on a ConverterParameter that
contains the property name. However, with a dozen or more of these controls
on a page, that could get a bit messy.
Is there a more elegant way of doing this?
Thanks,
WtS