Click here to Skip to main content
15,846,727 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey there,

I am using a rad grid,where i have add,delete and edit buttons outside the grid.On button click edit and add i have a asp panel which slides under the grid.this panel have textboxes for editing and updating.It have buttons save and cancel.

How to write code server side such that,when add is clicked and panel opens then insert query runs on save button,and Update when edit is clicked.Using if else on same button click event save.

My Edit,delete and Add Buttons are outside grid.


Could someone help?...

Thanks
Amit.
Posted

1 solution

Though for your question, what you need is:
1. Check if a row is selected in a grid.
2. Based on selection, use its key to get the full record details.
3. Populate the edit panel controls with those values
4. Once save is clicked after a change, on server side get values from controls and save it to DB. Update gird.
Try!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900