Hi
I am trying gridview sort of thing in MVC everything is fine but issue is when i click on edit on particular row the row no should be passed to the editing method . But when i clicking edit on particular row its returing me null to controller which have method EDIT with id as parameter ? i am confused
stuck donno what to do ? any suggestions
This link contains what i am trying : CRUD OPERATIONS
Regards

Jaganathan BantheswaranPosted Mar 11, 2014, 3:28 AM
You can use the source code provided over these articles.
http://www.c-sharpcorner.com/UploadFile/cd7c2e/create-an-editable-webgrid-in-mvc4-to-implement-crud-operati/
http://www.c-sharpcorner.com/UploadFile/2b481f/get-selected-row-from-webgrid-in-web-api/
http://www.c-sharpcorner.com/UploadFile/cd7c2e/implement-insert-update-and-delete-functionality/
SUNIL GUTTAPosted Mar 14, 2014, 1:12 AM
You links helped me in different way . Thank you very much .
The solution to my issue mentioned above is very simple just need to add "ID " attribute in @html.Action link in view page . so we can pass the Id value of select row to the controller the to db
Thank very much for your support
SUNIL GUTTAPosted Mar 11, 2014, 5:40 AM
I don't need a big code just a expert advice or some 2-3 line code help how to pass the correct values to the method in controller .
Thank you
SUNIL GUTTAPosted Mar 11, 2014, 1:56 AM
just help me to get a idea so the parameter int ? id in controller edit method gets the selected index .
Regards
Sanjay DholakiyaPosted Mar 10, 2014, 7:02 PM
Can you add your cshtml/vbhtml Edit button code?
- Sanjay