Click here to Skip to main content
15,891,762 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 29-Sep-10 6:44am
v2

Just a thought, if you want the combo down all the time it will mask other cells. Why not a listbox?
 
Share this answer
 
I'm sorry Henry, I didn't mean to confuse you.

I don't want the combobox "list" down all the time... just the ARROW, to let the user know that you can select options per cell. But the only time I currently see the ARROW, is when I'm in EDIT mode.

Michael
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900