Hello Forum,
I have two issues to learn and resolve please:
When I added image column and DeleteButton to my gridview to display from the database table, I discovered that the image column and the DeleteButton appeared in the first two columns from the left.
I will rather want those two columns to be the last two columns; that is I want to move the two mentioned columns from the left side of the gridview to the right side. However I don’t know if this is possible since other columns are auto-generated based on the tables in the database and the image column is inside the ItemTemplate and TemplateField while the DeleteButton is inside CommandField.
So please can the image column and DeleteButton be move to the right to be the last two columns?
I tried to hide the DeleteButton for the row where Admin record is displayed but the DeleteButton still appears for every row; could it be due to the fact that Label control is not used in the gridview to bind data from data table? From the screenshot you could see in the UserRole column where A represents Admin DeleteButton is showing.