Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
UltraWebGrid:SQLDataSource can't update or delete row in DB,but insert worked?
posted

I'm using  vs2005,this is what i did :

- I placed a ultrawebgrid on a new aspx form and chose the SQLDataSource as my data source.
- I connected the SQLDataSource to the correct object in my data layer and enabled insert/update/delete features on it 

-i enable ajax,addbox and delete in ultraWebGrid

-i write code in rowupdate() for case of row Modifed and row Insert as UpdateDBRow(e.row) and InsertDBRow(e.row)

-i write code in rowDelete() as DeleteDBRow(e.row)

now i can add new record in DB when i am add new line in  webGrid,but after edit one row and change to another row,the "UpdateDBRow(e.row)" called and it change data in webGrid,but not in the DB;

and when i delete row in the webGrid ,the row deleted in the grid too,but same not in the DB;

so can anyone please tell me what problem of this?

Parents Reply Children
No Data