DataGridView and DataSet
-
HI, i have a strange problem: i have a datagrid view bound to a table. when i edit a cell content i press a button to save this changes like this : TA_Users.Update(dS_StationManager.T_Users); dS_StationManager.T_Users.AcceptChanges(); THIS WORKS FINE. now i've decieded to removw the button so that the changes will be saved without the user pressing the button. i've tryied copying this two code lines TA_Users.Update(dS_StationManager.T_Users); dS_StationManager.T_Users.AcceptChanges(); to diff datagridview events like : 1. dgvUsers_Edit_CellValueChanged 2. dgvUsers_Edit_CellEndEdit but nothing happens, the database does'nt change Help Req THANKS :) :)
Have Fun Never forget it
-
HI, i have a strange problem: i have a datagrid view bound to a table. when i edit a cell content i press a button to save this changes like this : TA_Users.Update(dS_StationManager.T_Users); dS_StationManager.T_Users.AcceptChanges(); THIS WORKS FINE. now i've decieded to removw the button so that the changes will be saved without the user pressing the button. i've tryied copying this two code lines TA_Users.Update(dS_StationManager.T_Users); dS_StationManager.T_Users.AcceptChanges(); to diff datagridview events like : 1. dgvUsers_Edit_CellValueChanged 2. dgvUsers_Edit_CellEndEdit but nothing happens, the database does'nt change Help Req THANKS :) :)
Have Fun Never forget it
Are those events actually tied to the delegate?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
-
HI, i have a strange problem: i have a datagrid view bound to a table. when i edit a cell content i press a button to save this changes like this : TA_Users.Update(dS_StationManager.T_Users); dS_StationManager.T_Users.AcceptChanges(); THIS WORKS FINE. now i've decieded to removw the button so that the changes will be saved without the user pressing the button. i've tryied copying this two code lines TA_Users.Update(dS_StationManager.T_Users); dS_StationManager.T_Users.AcceptChanges(); to diff datagridview events like : 1. dgvUsers_Edit_CellValueChanged 2. dgvUsers_Edit_CellEndEdit but nothing happens, the database does'nt change Help Req THANKS :) :)
Have Fun Never forget it
copy back to button and check if its still working
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia> -------------------------------------------------------- 128 bit encrypted signature, crack if you can
-
copy back to button and check if its still working
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia> -------------------------------------------------------- 128 bit encrypted signature, crack if you can
-
Are those events actually tied to the delegate?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
-
Xmen wrote:
copy back to button and check if its still working
what do u mean?? call the button callback form the event??
Have Fun Never forget it
I mean copy paste that code in a button and test that is it still working. It may possible that you change something and forgot...
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia> -------------------------------------------------------- 128 bit encrypted signature, crack if you can
-
I mean copy paste that code in a button and test that is it still working. It may possible that you change something and forgot...
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia> -------------------------------------------------------- 128 bit encrypted signature, crack if you can
-
HI, i have a strange problem: i have a datagrid view bound to a table. when i edit a cell content i press a button to save this changes like this : TA_Users.Update(dS_StationManager.T_Users); dS_StationManager.T_Users.AcceptChanges(); THIS WORKS FINE. now i've decieded to removw the button so that the changes will be saved without the user pressing the button. i've tryied copying this two code lines TA_Users.Update(dS_StationManager.T_Users); dS_StationManager.T_Users.AcceptChanges(); to diff datagridview events like : 1. dgvUsers_Edit_CellValueChanged 2. dgvUsers_Edit_CellEndEdit but nothing happens, the database does'nt change Help Req THANKS :) :)
Have Fun Never forget it
Dont you think you need to try the event dgvUsers_SelectedIndexChanged. I have tried that in my code. It was working. Try to update the database after you leave that row . .
-
Dont you think you need to try the event dgvUsers_SelectedIndexChanged. I have tried that in my code. It was working. Try to update the database after you leave that row . .
-
yep stiil works i copied it to the tabpage selectedindex changed event and it works :(
Have Fun Never forget it
half-life wrote:
i copied it to the tabpage selectedindex changed eventand it works
hehe nice place xD well try this one
void UpdateDataBase(object sender, EventArgs e) { // paste here that code }
and in CellValueChanged
this.Invoke(new EventHandler(UpdateDataBase));
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia> -------------------------------------------------------- 128 bit encrypted signature, crack if you can