how to track editing & non-editing rows

Posted by Oswaldlily under ASP.NET on 2/8/2013 | Points: 10 | Views : 623 | Status : [Member] | Replies : 6
I have edit-Update/cancel inside gridivew..

Chance 1: By editing I can update rows
Chance 2:By not editing I can simply update rows..

If Chance 1,need to update into datatabase table..
if chance 2,shd not update into database table..
how i can track these while updating?




Responses

Posted by: Pavanandey on: 2/8/2013 [Member] Bronze | Points: 25

Up
0
Down
you update the dataset and use haschanges method to check if any thing has changed

Thanks
Pavan Kumar
Mark Answer if this fits the need

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Oswaldlily on: 2/8/2013 [Member] Starter | Points: 25

Up
0
Down
Can v do so by using editIndex????

what is meant by gv.editIndex=0 and gv.editindex=-1?????

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Pavanandey on: 2/8/2013 [Member] Bronze | Points: 25

Up
0
Down
edit index is used in editing but not to track changes

Thanks
Pavan Kumar
Mark Answer if this fits the need

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Pavanandey on: 2/8/2013 [Member] Bronze | Points: 25

Up
0
Down
it gives the idex of the rown being edited

Thanks
Pavan Kumar
Mark Answer if this fits the need

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Oswaldlily on: 2/8/2013 [Member] Starter | Points: 25

Up
0
Down
gv.editindex=-1 (some row values got changed)
gv.editindex=0(nothing got affected)

right??? tracking na??

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Pavanandey on: 2/8/2013 [Member] Bronze | Points: 25

Up
0
Down
editing can be done any where, you may change and save or you may simple click edit and save again so in such case you cannot say there is a update

Thanks
Pavan Kumar
Mark Answer if this fits the need

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response