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
145
Wingrid configuration
posted

Hello,

 

I've placed a WinGrid control on a form and applied the MSCRM.xml preset.

 

From this point, how can I achieve :

1) that the vertical gridlines are also Lightgrey  (I've tried through cell properties bordercolor (+ bordercolor2) but no success)

2) how can i change the basic keyactionmappings collection ?  I want to use left and right buttons to 'jump' to the previous or next cell (on that row). Is there a some sort of dialogbox from which you can choose certain actions depending on the key pressed ?

 

Regards,

Yves

 

PS. I'm new to using WinGrid, so maybe i missed a few important KB's or documentation parts, please inform me if i do.

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi Yves, 

    bertcresens said:
    1) that the vertical gridlines are also Lightgrey  (I've tried through cell properties bordercolor (+ bordercolor2) but no success)

    Are the border colors really different? Or is it just that the borders are dotted instead of solid? If it's the color, then you have to use the BorderColor properties on an appearance. If it's a style, then yuo need to set BorderStyleCell or BorderStyleRow.

    bertcresens said:
    2) how can i change the basic keyactionmappings collection ?  I want to use left and right buttons to 'jump' to the previous or next cell (on that row). Is there a some sort of dialogbox from which you can choose certain actions depending on the key pressed ?

    No, there's no dialog. You can only modify this collection in code. So in your case, you would have to find the current actions for the left and right arrow keys in the collection and change the property on those actions so that the perform different operations. 

    Another option would be to handle the BeforePerformAction event, cancel it, and then set focus to the cell you want.

Children
No Data