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
2387
Tweaking the look
posted

there are a number of little tweaks I would like to make to how a WinGrid looks, but I cannot figure out how to do them.  Here is the screen shot of what I have so far:

Here is what I would like to change:

  • Remove the little brown box leading off each row, on band[0] it is between the +/- and Text, on band[1] it is before the 68

Band[0]

  • Keep the # column fixed (it's min/max is set to 24 right now) and make Name expand so that the full width of the control is used.

Band [1]

  • Eliminate any space between band[0], both above and below it.
  • Make it so that it is NOT possible to select band[1]
Parents
  • 469350
    Suggested Answer
    Offline posted

    Your last question is a bit unclear. What exactly do you mean by "select"?

    You can prevent the user from selecting a row in any band using something like this:

    grid.DisplayLayout.Bands[0].Override.SelectTypeRow = None

    But I don't think you are really talking about selection here, I think you probably mean something more, like you don't want the user to Activate the row, or maybe you don't want the row to be editable.

    So what exactly do you want to happen when the user clicks on a row in Band 0?

Reply Children