GridView ItemTemplate different location?
-
Hello, I'm using ASP.NET 2.0. I have to make a Gridview containing a couple of buttons. I inserted the buttons using ItemTemplates. When the GridView is rendered to the client the ItemTemplates containing the buttons are allways placed to the left hand of the gridview and the data is placed right of the buttons. Is it possible to put the ItemTemplates/Buttons to the right hand side of the GridView and the data to the left hand side? Thanks for any help on this. Best tregards Jens
-
Hello, I'm using ASP.NET 2.0. I have to make a Gridview containing a couple of buttons. I inserted the buttons using ItemTemplates. When the GridView is rendered to the client the ItemTemplates containing the buttons are allways placed to the left hand of the gridview and the data is placed right of the buttons. Is it possible to put the ItemTemplates/Buttons to the right hand side of the GridView and the data to the left hand side? Thanks for any help on this. Best tregards Jens
hi, Set AutoGenerateColumns = "False" for you gridview and create boundcolumns for all the data to display and at the last create your tempaltecolumns to display the buttons.
Thanks and Regards, Chetan Ranpariya
-
hi, Set AutoGenerateColumns = "False" for you gridview and create boundcolumns for all the data to display and at the last create your tempaltecolumns to display the buttons.
Thanks and Regards, Chetan Ranpariya
Hi Chetan, thanks for your answer. So when i get this right, you suggest to generate the template columns dynamically? When do i have to do this (After databinding for instance) and do i do it? Best regards Jens
-
Hi Chetan, thanks for your answer. So when i get this right, you suggest to generate the template columns dynamically? When do i have to do this (After databinding for instance) and do i do it? Best regards Jens
Hi U dont need to create template columns dynamically. I hope this will help u. Thanks and Regards, Chetan Ranpariya
-
Hi U dont need to create template columns dynamically. I hope this will help u. Thanks and Regards, Chetan Ranpariya
Dear Chetan, thank you very much for your kind help. That was exactly what i needed. Man, you made my day :) Thanks again Jens