c# - efficient check if datagridview has been modified -


i need efficiently check if datagridview has been modified save edit database, problem can't find efficient way it, unsafe options welcome aswell, in advance

p.s. doesn't matter change is, matter me know if has been changed not waste processing power saving same data db (yeah kinda trying state obvious automatic check question length let me pass , post question)

datagridview.cellvaluechanged event made purpose, make sure don't include row index of -1

    private void datagridview1_cellvaluechanged(object sender, datagridviewcelleventargs e)     {         if(e.rowindex > -1)         changed = true;     } 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

post - imageshack API cURL -

dataset - MPAndroidchart returning no chart Data available -