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
2715
Activation on grid
posted

Hi

How could i set the activation property to NoEdit on the whole grid ?

And another issue, how could i align the content of a cell to the right ?

Thanks!

Parents
No Data
Reply
  • 69832
    Verified Answer
    Offline posted

    mismar said:
    How could i set the activation property to NoEdit on the whole grid ?

    You have to set the CellActivation property on each column in each band. Handle InitializeLayout, iterate the e.Layout.Bands collection, and then iterate the e.Layout.Bands[n].Columns collection for each band and set the CellActivation property to 'NoEdit' for each column.

    mismar said:
    And another issue, how could i align the content of a cell to the right ?

    UltraGridColumn exposes a CellAppearance property; you can set the UltraGridColumn.CellAppearance.TextHAlign property to 'Right'.

Children
No Data