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
Vishal JoshiPosted Mar 3, 2023, 7:11 AM
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
Vishal YelvePosted Mar 3, 2023, 5:07 AM
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/
Naimish MakwanaPosted Mar 3, 2023, 4:39 AM
I am not able to post the answer here.
Jaya PrakashPosted Mar 3, 2023, 4:34 AM
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 .....
Naimish MakwanaPosted Mar 3, 2023, 4:29 AM
To insert an icon inside a GridView instead of Edit and Delete button, you can use the GridView's TemplateField.
Thanks
Naimish Makwana