I am creating a DataGrid in a WPF dialog. It requires the following functionality:
1. Each Cell needs to be a combo box, with only 4 values. This I've done
2. I'd like the cell to SHOW the combo box drop-down at all times. This I haven't figured out.
3. I need to create the grid dynamically,to be X by Y. I'm doing this, but it seems to want to be X+1 by Y+1. I haven't figured that out yet.
4. I need to be able to only highlight the CURRENT cell I'm selecting, but for some reason, when I click on a cell, the entire ROW is highlighted. Not sure how to turn this off.
5. I DO need to be able to select an entire Row or Column, and change all the cells in that range to a particular value in the combo box, just as I would for a single cell.
6. I need to change the cell COLOR on INIT, or on cell changed, depending on the value in the combo box I select. I haven't figured out how to do that yet.
7. I need to be able to SERIALIZE the values in the grid (read/write the values to a file. So, unless there is another method, I need to be able to walk through the table cell by cell, to get / set those values. I will also have "templates" I need to set the grid to for predefined cell values. Not sure how best to approach this.
8. I recently learned that this UI needs to work on a Touch-Screen system. Does the DataGrid play nicely with a Touch Screen UI? I was planning on making the row height / column width square anyway, so in that regard, there shouldn't be any problems.
Is any of this doable? Any suggestions for the above items would be greatly apreciated. In the past, I've always used 3rd party grids, and never in WPF (relatively new to WPF). So any help you could provide would be greatly appreciated!
Michael