Click here to Skip to main content
16,015,623 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
There are 2 scenarios in my web application.

1. Create New claims
2. Edit Existing claims

In first scenario, I created new claims, and showed data in gridview but now I want that when I click on Button for Edit_Existing_Claim then the same form (create_new_claims) should be opened but that gridview should be editable.

There I can view edit button, when I click on it then I must be able to edit, but in Creating new claims that button should not be there.

I added edit button in gridview and set the visible property false.

But now how can I view that edit button when I click on edit_existing_claims?

Please tell me the steps which I can follow for this scenario.
Posted
Updated 1-Dec-10 21:33pm
v4
Comments
Dalek Dave 2-Dec-10 3:34am    
Edited for Spelling and Grammar.
goelhima 2-Dec-10 3:42am    
can anyone help me fast?

1 solution

Gridview has default field like <asp:commandfield xmlns:asp="#unknown">.using this field you can generate edit,update,cancel buttons in gridview columns.go to source code of your app and write in gridview

<columns><asp:commandfield showeditbutton="true" showupdatebutton="true" showcancelbutton="true">
 
Share this answer
 
Comments
goelhima 2-Dec-10 4:49am    
than after that what i have to do?
how i can do with query string?

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