Home > Net >  DatadridView enable delete beyond index
DatadridView enable delete beyond index

Time:09-25

Background: datadridView enable delete
Function: selected line, press the Delete button, execute database Delete, Delete after a successful rebind the data source,
Case description: 1, when the database (more than two) of multiple data, delete the first time, after a single-step tracking, execution process is no problem, when the bound data source data is no problem, but the result of the show was deleted a also not shown below (the bound data source is this one), the matter, if you click query or front page, back (query condition is empty, is all not delete the data query, only one page), click later, according to normal,
2, on the basis of problem 1, for the first time to delete a line, the data source through tracking is removed a line, when the show lost two lines, selected a line again, delete, the function is normal, delete the line loss,
3, when the data is only one line, complete the program code, the data source is also normal, list is empty, but when I after the code is executed, F5 to jump out of the code, in the program. The cs execution window of time at a beyond the exception of the index, if ignore this exception, press F5 to skip, interface display is normal,
Above is the description about this issue, combined with code screenshots, looked great god help to find where the problem, thank you very much! The good life of peace,

CodePudding user response:

Should be there is something wrong with the constructor or the load event

CodePudding user response:

Can help you debug remotely

CodePudding user response:

In your method writing try

CodePudding user response:

refer to the second floor Dear200892 response:
can remotely help you debug
my penguin number 839789221, it's convenient, would add me, thank you

CodePudding user response:

reference Summer_djz reply: 3/f
in your method writing try
I single-step tracking, all my code is not an exception is thrown, the data in my opinion, there is no question of the bound data source, but just don't know what is the problem

CodePudding user response:


You delete your page code, binding dt directly, does not throw an exception

CodePudding user response:

reference 4 floor qq_16495723 response:
Quote: refer to the second floor Dear200892 response:
can remotely help you debug
my penguin number 839789221, it's convenient, would add me, thank you


You download a TeamViweer remote control, then tell me connection information

CodePudding user response:

refer to 6th floor ManBOyyy response:

You delete your page code, binding dt directly, if not throw an exception
I've tried, not line, read out the bound data source directly from the database, then an error

CodePudding user response:

refer to 7th floor Dear200892 response:
Quote: refer to 4th floor qq_16495723 response:

Quote: refer to the second floor Dear200892 response:
can remotely help you debug
my penguin number 839789221, it's convenient, would add me, thank you


You download a TeamViweer remote control, then tell me the connection information
id 531325678
Password 7805

CodePudding user response:

You is the latest version?

CodePudding user response:

The
references to the tenth floor Dear200892 response:
is the latest version of you?
85 qq6b 531325678 passwords

CodePudding user response:

The
reference 11 floor qq_16495723 reply:
Quote: reference to the tenth floor Dear200892 response:
is the latest version of you?
531325678 password 85 qq6b

The password is wrong

CodePudding user response:

Your photo upload figure to me

CodePudding user response:

reference 13 floor Dear200892 reply:
you let me see photo upload figure
password you try v221xu, I had a refresh

CodePudding user response:

How to delete the

CodePudding user response:

The
reference 15 floor Dear200892 reply:
how to delete the
change essentially, when are you free after you eat, help me see

CodePudding user response:

The database is installed?

CodePudding user response:

The
cited the 17th floor Dear200892 reply:
database installed?
I have on computer

CodePudding user response:

refer to the 18th floor qq_16495723 response:
Quote: refer to 17th floor Dear200892 response:
database installed?
on my computer is


That'll see

CodePudding user response:

references the 19th floor Dear200892 response:
Quote: refer to the 18th floor qq_16495723 response:

Quote: refer to 17th floor Dear200892 response:
database installed?
on my computer is


The forwarder will see
ok

CodePudding user response:

references the 19th floor Dear200892 response:
Quote: refer to the 18th floor qq_16495723 response:

nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  •  Tags:  
  • C#
  • Related