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
463
ColumnChooser
posted

Hi

i am using ultraToolbarsManagerMain to open form in Tab at run Time.when i click on

ColumnChooser (on Grid's column chooser button)then column choser is appear.how can i set the location of it.

i want that it must be open near the Grid's column chosser button.

i am trying to use

 

private

 

 

void ultraGrid_BeforeColumnChooserDisplayed(object sender, BeforeColumnChooserDisplayedEventArgs

e)

{

e.Dialog.ColumnChooserControl.Location =

 

new Point

(ultraGrid.Location.X,ultraGrid.Location.Y);

}

but it is not work.may be it is needed to add also ultraToolbarsManagerMain height .how can i get the X and Y position of

ToolbarsManagerMain .

Parents
  • 69832
    Suggested Answer
    Offline posted

    I'm not sure that I followed this correctly but I think you want to set e.Dialog.Location, not e.Dialog.ColumnChooserControl.Location. Furthermore, I believe you would have convert the point using the PointToScreen method (of the form on which the UltraGrid resides) so the point you pass to the ColumnChooserDialog is in screen coordinates, not client coordinates.

Reply Children