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
805
UltraGrid in card mode always selects first column?
posted

I'm using a card-mode UltraGrid (9.x under WinForms .net 3.5 VS'08) as a proxy for an otherwise complex form that displays many fields of a large data entity. By binding it to a dataSource consisting of a List with a single object, you get a display with labels on the left and data fields on the right.

Everything displays properly, but when the display is opened (it's a userControl in a tabview) the "first row" (which, because it's a card, is the first column) is always selected. This looks ugly. Additionally, there's a row-selection widget at the top of the column, which pushes everything down in the display.

I have turned off the row selection widgets, but this seems to have no effect. Any advice?

Maury

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi Maury,

    The card is probably not actually selected, it's probably the active row in the grid. The grid doesn't automatically select anything. But it does keep the active row in synch with the current position of the BindingManager, and by default, the grid has some appearances set up to make the active row appear selected.

    Here's a KB article that tell you how to turn this off:

    FAQ:How do I turn off the ActiveRowAppearance so that the active row in the grid does not appear selected.

    I'm not sure what you mean by "row selection widgets". I think the way you select a card is by clicking it's header. So you probably want to do this:


                band.CardSettings.ShowCaption = false;

     

Reply Children