Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
355
keyboard control of xamwebgrid
posted

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?

Parents
  • 6475
    Verified Answer
    posted

    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.

    xamwebgridsample.zip
Reply Children
No Data