简体   繁体   English

Devexpress Gridview editform中间如何打开?

[英]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. 只是一个简单的问题,目前,我的editform正在窗体的一侧打开。 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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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