confirm message while clicking delete button of gridview

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bala venkata siva ram kum
    New Member
    • May 2010
    • 15

    #1

    confirm message while clicking delete button of gridview

    Hi friends,
    I need to get confirm message box while clicking delete button of gridview.please tell me the solution.
  • sword117
    New Member
    • Jun 2010
    • 35

    #2
    hello there is it a button that you created or keyboard button?

    Comment

    • sword117
      New Member
      • Jun 2010
      • 35

      #3
      if is a keyboard button im getting the same problem that you are lol

      but i have here some sort of code that my teacher gave a hint..(he can go to hell xD)
      but here is the hint

      by the way you got to use keypress.

      Code:
        int ascii = Convert.ToInt16(e.KeyChar);
                  if ((ascii == 127))
                  {
      
                      e.Handled = false;
                      MessageBox.Show("false");
      
                  }
      
                  else
                  {
                      MessageBox.Show("true");
                      e.Handled = true;
      
                  }
      Last edited by Niheel; Jun 19 '10, 01:43 AM. Reason: please use code tags to display code

      Comment

      • bala venkata siva ram kum
        New Member
        • May 2010
        • 15

        #4
        Originally posted by sword117
        if is a keyboard button im getting the same problem that you are lol

        but i have here some sort of code that my teacher gave a hint..(he can go to hell xD)
        but here is the hint

        by the way you got to use keypress.

        Code:
          int ascii = Convert.ToInt16(e.KeyChar);
                    if ((ascii == 127))
                    {
        
                        e.Handled = false;
                        MessageBox.Show("false");
        
                    }
        
                    else
                    {
                        MessageBox.Show("true");
                        e.Handled = true;
        
                    }
        Hi friend thanks for your reply,but here i am not using keyboard button.i have created a button in gridview by enabling auto generate delete button 'on'.

        Comment

        • sword117
          New Member
          • Jun 2010
          • 35

          #5
          Originally posted by bala venkata siva ram kum
          Hi friend thanks for your reply,but here i am not using keyboard button.i have created a button in gridview by enabling auto generate delete button 'on'.
          hello again. all right then. i dont know the solucion to your problem. but i did a program

          were i did the same thing that you say you want. so here is the download link(to remove the

          underscore go to any folder > tools > folder options...> to the tab view and uncheck the

          "Hide extensions for known file types" then rename the .rar_ file to .rar =))

          and extract to hard drive "c:\" otherwise you got to change the source of the database. see it work 1ยบ ;)

          Comment

          Working...