THIS IS MY GRIDVIEW
| Slno | date | type | ACTION |
| 1 | 2019 /01/10 | 1 | (button) EDIT |
| 2 | 2019/01/10 | 2 | (button) EDI |
| (button)SAVE |
i'm already datakeysname is set in the gridview.and
i want save data from gridview using footer buttonand that datakeyname value paasing to sql..
on that btnclick event is generated.
i didn't get each row datakeynames value.
string id=gdvlist.Datakeys[gr.rowindex].value.tostring(); i pass this line but i got this type of error
Index was out of range. Must be non-negative and less than the size of the collection.
how to access datakeyname and how to save data fron grid on footer button click.
plz help me. thnkx in adv

Bryian TanRank #396 · 6.3K reputationPosted Jan 11, 2019, 8:24 AM EST
Sanwar RanwaRank #23 · 44.7K reputationPosted Jan 11, 2019, 8:35 PM EST
Satyaprakash SamantarayRank #101 · 21.1K reputationPosted Jan 13, 2019, 7:58 AM EST
Satyaprakash SamantarayRank #101 · 21.1K reputationPosted Jan 13, 2019, 7:59 AM EST
Reylin MathewRank #4,152 · 361 reputationPosted Jan 13, 2019, 7:28 PM EST
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts