Hi all,
Seems like something simple but I can't find where or how to control this behavior.
I have a xamwebgrid with a child band showing hierarchical information. There are text boxes in the parent as well as child rows.
The child rows allow me to type any character in the textboxes, but in the parent rows I can't type a minus (-) or plus (+) sign. Turns out these seem to be reserved for expanding/contracting the rows.
Can I turn this behavior off somehow?
Georgi
Okay, that worked, thank you.
All I need now is to make the entry field stay in place once you enter edit mode. Having the text move up to the top right corner of the cell isn't very nice looking.
-Chuck
Is the attached solution working for you? What i basically did was to add an EditorTemplate to your TemplateColumns (the same as the ItemTemplate), enable Editing upon CellActivation and turn off the "ReadOnly" property of your columns (otherwise they won't enter Edit mode). Now, the cells will enter Edit mode upon activation and you'll be able to enter the "+" and "-" chars in the editors. If the cell is not in Edit mode, the "+" and "-" keys are used for navigation (Expanding/Collapsing the Column Layouts) and that's why you're getting this effect.
Okay here is my sample.
WHat I need to be able to do is type in - or + signs in the text boxes. When I use those keys however they always expand and contract the parent rows for me.
Thanks for any help!
Whoops.... I was too hasty. This did not work for me.
Looks like I'll need to come up with a repro scenario for you. I'm surprised I can't easily turn off this hard-coded behavior, however. I need people to be able to type in negative numbers into a text box in the item template in the parent row.
I'll post again with a simple repro set up.
Thanks, Georgi, that was what I needed.