This article contains GridView template column formatting through Data Format String, ternary operator blocks and custom methods. Using Format String Date time <itemtemplate> <asp:Label ID="lblDOB" runat="server" Text='<%# Eval("DOB","{0:d}") %>'></asp:Label> </itemtemplate> </asp:TemplateField> For Long Date, <itemtemplate> <asp:Label ID="Label8" runat="server" Text='<%# Eval("DOB","{0:d}") %>'></asp:Label> </itemtemplate> </asp:TemplateField> Using ternary operator <ItemTemplate> <asp:Image ID="ImageOpenPending" runat="server" ImageUrl='<%# Convert.ToInt32(Eval("StateId")) == 1 ? "~/images/icons/DashBoard_Green_Bullet.gif" : "~/images/icons/DashBoard_Red_Bullet.gif" %>' /> <asp:H...