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
710
Delete rows in UltraGrid without shown Confirmation Message to user at run time ?
posted

Hiiiii

Hey, I want to delete selected multiple rows at run time without shown Delete Confimation Message.

May be u know when we delete one single row in UltraGrid then open one Confirmation box like "Are u sure u want to delete".

Now my problems is i m deleted multiple rows at runtime in For loop. In this case at very first ot asked to me about confirmation message, so that my for loop is terminated that why i m not deleted multiple rows at a time,

Is it Possible.. ? Or is it any propertie for unable to Delete Confirmation Message, ?

- Hiren Lad

  • 53790
    posted

    Hi,

    Yes, it is possible. For example you can do this with the code below:


    public Form1()
     {
      InitializeComponent();
      //Get the event BeforeRowsDeleted
      ultraGrid1.BeforeRowsDeleted += new Infragistics.Win.UltraWinGrid.BeforeRowsDeletedEventHandler (ultraGrid1_BeforeRowsDeleted);
     }

    void ultraGrid1_BeforeRowsDeleted(object sender, Infragistics.Win.UltraWinGrid.BeforeRowsDeletedEventArgs e)
     {
     e.DisplayPromptMsg = false;
     }