Edit Template in Gridview
-
I want to edit template in gridview. how can I place an icon in a template, and then how to use it. The problem with me is that i am placing gif or png image file, which does not show any property. so how can i make my own icon from these images.
-
I want to edit template in gridview. how can I place an icon in a template, and then how to use it. The problem with me is that i am placing gif or png image file, which does not show any property. so how can i make my own icon from these images.
I dont get your problem. You might easily show an Image control inside EditTemplate of the gridview to show an image... :confused:
Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript -
I want to edit template in gridview. how can I place an icon in a template, and then how to use it. The problem with me is that i am placing gif or png image file, which does not show any property. so how can i make my own icon from these images.
What is your actual problem or Business requirement ?
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
I want to edit template in gridview. how can I place an icon in a template, and then how to use it. The problem with me is that i am placing gif or png image file, which does not show any property. so how can i make my own icon from these images.
you can use an image control. lets say you are Displaying a username you can bind a Username to a Label and bind the icon to a image control. like this
<ItemTemplate> <asp:CheckBox ID="CheckBox1" runat="server" /> <br /> <asp:Label ID="myLabel" runat="server" Text= '<%# Eval("Title")%>'/> <asp:Image ID="myicon" runat="server" ImageUrl="~/icon.gif" /> </ItemTemplate>
hope this Helps
Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/