I am trying to have a grid which has displays 2 rows from a dataset in card view mode. The idea is to have the user be able to compare the 2 rows and check off the values they want ( for each column, they can choose a value from either row 1 or row 2 ). I was using this with a checkbox, but the date/time columns wont allow it. Is there something else I could try?
Hi,
You kinda lost me right at the end. Where exactly is the checkbox and what do you mean by "the date/time columns wont allow it"?
Lets say we have a product table -- it has name, price, date fields.
I would like to show a grid which allows the user to compare 2 rows of that table. When they perform the comparison, they are trying to pick which fields they want to keep from either row. So they could pick the name from the first row , the price from the 2nd row, and the date back from the first row.
In order for them to do this, I thought it best to put a checkbox next to each cell -- so for each row ( and they are only 2 ), they just pick the value they want. This works well if you set the editor control for a cell to the ultra check editor. But for Date/TIme or timespan fields it does not. Setting the editor control on that type of field in the designer says the property is invalid.
So, is there another way to have checkboxes in this fashion? I am using 8.1.
Thanks!
I'm afraid I'm still confused. If you assign an UltraCheckEditor to a column in the grid, then the column will show a CheckBox and it will try to interpret the Value of the cell as a boolean value to determine the state of the CheckBox. This will hide the actual value of the column and checking the checkbox would change the value of the cell. So that seems like it would not do what you want (since the user won't be able to see the actual cell value), and also corrupt your data (by replacing the existing value of the cell with a boolean). So it doesn't seem that this approach will work.
Perhaps what you should do is add an Unbound column to the grid for each actual bound column. Then you could use RowLayouts to place a CheckBox column next to each real column of data and use those CheckBoxes to determine which fields to use.