الحدث الذي يقام على تغيير الاختيار من مربع في Infragistics UltraGrid؟
-
10-07-2019 - |
سؤال
وأنا باستخدام Infragistics UltraGrid في تطبيق WinForms عناصر.
الحدث الذي يقام على "تغيير الاختيار" من مربع في Infragistics UltraGrid؟
المحلول
وهذا الحدث AfterUpdate من مربع هو ما ستحصل تريد استخدامها.
إذا كنت غير قادرة على تحريك ذلك، على الرغم من محاولة إضافة هذا أيضا:
Private Sub YourGridcontrol_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles YourGridcontrol.MouseDown
YourGridcontrol.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.EnterEditMode)
End Sub
Private Sub YourGridcontrol_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles YourGridcontrol.MouseUp
YourGridcontrol.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.ExitEditMode)
End Sub
وافتراضيا، فقط تبديل خانة الاختيار لا يبدو أن يؤدي الى تحديث. بجعله إدخال / وضع التحرير للخروج، يجب على بعد_التحديث العمل على النحو الذي تريد.
وUPDATE: أو، كما اقترح فنسنت، والقيام PerformAction على الحدث CellChange يجب أن تعمل أيضا. جوهر هو نفسه.
نصائح أخرى
استخدم هذا الحدث CellChange
لرفع الحدث UltraGrid.PerformAction(UltraGridAction.ExitEditMode)
. هذا وسوف إطلاق الحدث AfterCellUpdate
.
لا تنتمي إلى StackOverflow