How to insert icon inside gridview instead of edit and delete button and alos when i click on icon it will be a modal popup and should show details about selected row..
when i click on icon it should be popup model in that i need to show table data from database pls help me any suggestions

Naimish MakwanaRank #324 · 7.7K reputationPosted Mar 2, 2023, 11:39 PM EST
I am not able to post the answer here.
Naimish MakwanaRank #324 · 7.7K reputationPosted Mar 2, 2023, 11:29 PM EST
To insert an icon inside a GridView instead of Edit and Delete button, you can use the GridView's TemplateField.
Thanks
Naimish Makwana
Vishal YelveRank #178 · 13.6K reputationPosted Mar 3, 2023, 12:07 AM EST
Hi Jaya,
Please refer below link which will help you
https://www.aspsnippets.com/questions/115408/Display-Font-Awesome-icon-in-ASPNet-GridView-BoundField-and-TemplateField-column/
https://www.aspsnippets.com/questions/181089/Display-Icon-in-LinkButton-inside-ASPNet-GridView-based-on-condition-using-Font-Awesome/
Jaya PrakashRank #1,293 · 1.3K reputationPosted Mar 2, 2023, 11:34 PM EST
when i click on that image button how to display selected row data in modal popup inluding imge should be displayed in modal papup
Thanks Sir .....
Vishal JoshiRank #377 · 6.7K reputationPosted Mar 3, 2023, 2:11 AM EST
Hello Jaya
Please review the below article to set the model popup on the edit icon click
https://www.c-sharpcorner.com/article/crud-operation-in-asp-net-mvc-using-ajax-and-bootstrap/
To set an icon for the edit button you can use font awesome. check the below Link for the same.
https://fontawesome.com/icons/pen-to-square?s=duotone&f=classic
Thanks