Home > Net >  Devexpress gridView1. DeleteSelectedRows (); Direct use of no reaction at all
Devexpress gridView1. DeleteSelectedRows (); Direct use of no reaction at all

Time:09-18

Devexpress gridView1. DeleteSelectedRows () and deleterow () directly with no response, in the table and database of all didn't delete,
Also many gridview methods all have no reaction, I don't know what is the problem, is there a big can help to solve the
 
Private void button3_Click (object sender, EventArgs e)
{

GridView1. DeleteSelectedRows ();
}

He is to refresh the same
 
GridView1. RefreshData ();
GridControl1. The Update ();

I use vs controls do not know to have influence, also is not never thought oneself write, just want to know this because what reason, the small white one, knowledgeable bosses help just a little

CodePudding user response:

The delete is not in the database, delete to write their own method, to delete the id, executing SQL statements is really deleted

CodePudding user response:

reference 1st floor ajdkjalj response:
that is not in the database, delete real delete to write their own method, to delete the id, executing SQL statements is really deleted

That is because I see development document he wrote his methods are deleted at the same time in the table and database, so it is a bit confusing,
But the problem is that he is the database and table all can't delete, even if write SQL what his list, the refresh method is also at the same time, it is difficult to make

CodePudding user response:

This I really finally the whole don't understand, so to write their own function implements the
Note this is not vs own, is inserted devexpress vs control datacontrol, I just use this software is also a small white,
As for why I say this is a direct use, because his development documentation instructions and sample code are used directly, and when I change the datasource this method can be used, but only delete the rows in the table, because cancelled the data source is not to change the data in the database, I feel this should be able to justify the method with data in the database should be related to changes, but don't know why I with the bad, guess it may be because some changes at the same time does not lead to success of
Thank you to answer my bosses
Still want to be able to have who can help me this small white with this confusion
  •  Tags:  
  • C#
  • Related