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
220
Customizing the message prompt to confirm deletion of rows in Ultragrid
posted

Hi,

I am using Ultragrid (Infragistics NetAdvantage 2006 Volume 1 CLR 2.0) in winforms .net 2.0 and I want to customize the message prompt that ultra grid shows by default while confirming the deletion of rows action with the user. For example - by default the message prompt says -

"You have selected 1 row for deletion.

Choose Yes to delete the row or No to exit."

so is there any way I can make it to say -

"are you sure you want to delete ?"

instead of

"Choose Yes to delete the row or No to exit."

Thanks,

Mandeep

  • 469350
    Verified Answer
    Offline posted

    Hi Mandeep,

    What you can do is handle the BeforeRowsDeleted event. The event args allow you to  cancel the default message box and you can then dislpay your own message and set e.Cancel to true if the user wants to cancel.