You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like
Not sure if there's an actual workaround, but it would be great to be able to:
Retrieve the XAML control whenever any cell's value is updated. This would make sense in order to somehow highlight the cell (control border of background) if the value entered is out of bounds.
Retrieve the row where the cell's value has been updated. Use-case example: user updates some cell's value and, depending on the value entered, other cells in the same row need to be automatically updated (or recalculated, or disabled)
For instance, take this table as an example:
The 1st and 2nd columns are ComboBox columns and all the remaining are Numeric columns.
Depending on the value selected by the user in the 1st column, some data cells are not needed (they are shown with 0 value). It would be nice to be able to provide some event in the TableView to access the row's controls and set the values from the view.
Also, the numeric cells have valid ranges, and after each user input, it would be nice to check the value and mark the cell if the value is out of bounds. IT would be nice to be able to do this from the view.
Describe alternatives you've considered
Some workaround can be achieved by checking the values in the ViewModel.
Also, the LostFocus event makes possible some handling, but the event's function arguments object sender and RoutedEventArgs e don't seem to provide information about the row that has been interacted with.
Just my two cents for your consideration for future versions of the control.
PS: just another two features come to mind: adding row headers and transposing the view (same binding to the list, but the control is drawn with the columns as rows and the rows —cases— as columns).
The text was updated successfully, but these errors were encountered:
First of all, thanks for this great control. 👍
Describe the solution you'd like
Not sure if there's an actual workaround, but it would be great to be able to:
For instance, take this table as an example:
The 1st and 2nd columns are
ComboBox
columns and all the remaining areNumeric
columns.Depending on the value selected by the user in the 1st column, some data cells are not needed (they are shown with 0 value). It would be nice to be able to provide some event in the TableView to access the row's controls and set the values from the view.
Also, the numeric cells have valid ranges, and after each user input, it would be nice to check the value and mark the cell if the value is out of bounds. IT would be nice to be able to do this from the view.
Describe alternatives you've considered
Some workaround can be achieved by checking the values in the ViewModel.
Also, the LostFocus event makes possible some handling, but the event's function arguments
object sender
andRoutedEventArgs e
don't seem to provide information about the row that has been interacted with.Just my two cents for your consideration for future versions of the control.
PS: just another two features come to mind: adding row headers and transposing the view (same binding to the list, but the control is drawn with the columns as rows and the rows —cases— as columns).
The text was updated successfully, but these errors were encountered: