简体   繁体   中英

Devexpress Gridview editform how to open in the middle?

Just a simple question, at the minute my editform is opening on the side of the form. I'm just wondering if you can open it in the middle of the form automatically? I can't find option to do so.

Thank you in advance

use this :

Private Sub GridView1_EditFormPrepared(sender As Object, e As EditFormPreparedEventArgs) Handles GridView1.EditFormPrepared
    TryCast(e.Panel.Parent, Form).StartPosition = FormStartPosition.CenterScreen
End Sub

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM