Results 1 to 2 of 2

Thread: How to customize MS DataGrid Control canceled message box?

Threaded View

  1. #1

    Thread Starter
    Addicted Member kutlesh's Avatar
    Join Date
    Jun 2018
    Location
    Skopje, Macedonia
    Posts
    211

    How to customize MS DataGrid Control canceled message box?

    How can i customize the MS DataGrid Control 6.0 canceled action message box?

    Name:  USP_DataGrid.png
Views: 403
Size:  9.9 KB

    For example can I add a custom message instead of just showing "Action is canceled"?

    Note: This is a message box that appears when you set Cancel = True to a for example BeforeUpdate event on a DataGrid, like so:

    Code:
    Private Sub DataGrid1_BeforeUpdate(Cancel As Integer)
        Cancel = validateMyData(CStr(DataGrid1.Columns(1).Value))
    
        ' If Cancel = -1(True), the message box is displayed saying cannot progress to 
        ' different row if the data is not corrected
        ' if Cancel = 0(False), i can freely move other row.
    End Sub
    Last edited by kutlesh; Dec 4th, 2019 at 06:58 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width