Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 951029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:39:53+00:00 2026-05-15T23:39:53+00:00

I have a Devexpress Gridview that is linked to a delete, fetch and update

  • 0

I have a Devexpress Gridview that is linked to a delete, fetch and update stored procedure. The problem I am having is that when I run my program, select a row in the grid and press delete it fires the event multiple times. Specifically it deletes the selected row and then I re-fetch the data so the focus returns to the first row. Which is what I want. Unfortunately it starts at the beginning of my list and goes down it row by row deleting each row it comes to. It then continues several more times after the rows are deleted. I know this because for each deleted row it asks me if I want to delete it. If I say no then the rows appear to disappear until I manually refresh it after the deleting is done. To make this even more random the second row always reappears after I manually refresh the grid.

I saw that most people who had this problem on the internet had the event matched to several objects yet I don’t create the actionlistener myself the designer code did this once and I have set it up the same way I always do. In addition I tried to debug this (Visual Studio 2008) and it doesn’t stop at the breakpoints even though it prints out the line directly below the line.

EDIT:

I have narrowed down the problem. I didn’t mention before but I have a treelist that displays the names of departments and their employees. When a department is clicked it shows the grid mentioned above in the right pane of the window. When the program is first started the delete actionlistener is just fired once. When I select a second department a choose a row in the grid it is fired twice. Basically every time I select a different department there is another delete fired. So if I have selected another department 5 times then when I try to delete a row the delete is fired 5 times.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T23:39:54+00:00Added an answer on May 15, 2026 at 11:39 pm

    So I found my answer and I hope it can help someone.

    Basically I set the stored procedure within the same function that sets up my right pane when a department is clicked. So when I click on a department on the treelist it would set up the grid again. So essentially it was recreating it each time. To solve I just moved the creation of the grid and to the main function at the beginning that is only called once.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Devexpress Gridview . I generated a GridViewCommandColumnCustomButton in that Gridview on
I have got a devexpress gridview with Selection Enabled. Is it possible that, on
i am using devexpress gridview 9.2. i have 2 gridview having 2 colum -->
I have a devexpress xtraGrid. One column is editable. When I select the text
I have a grid (DevExpress XtraGrid, if that matters) which is bound to a
I have a solution with about 20 projects (that use Devexpress controls) in and
I have a Winform App that uses a 3rd Party Library of Controls, DevExpress.
I have a DevExpress GridView bound to an EntityInstantFeedbackSource. The data loads and pages
I have a DevExpress GridView whose cells are painted with a random color based
I am using DevExpress in my winform application, I have a gridview, data entry

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.