Use <EmptyItemTemplate>. You might have to put a space in it
Hope this helps
--
Kyle Kelin
..NET Developer
www.dotnetmafia.com
"Vinki" wrote:
> Hello Everyone,
>
> I have a gridview. I am using template columns inside the gridview.
> When I display the gridview on the web page and if there is no value in a
> particular cell, gridline disappaers around that cell.I want the grid lines
> to appear all the time even if the cell is empty. Can anyone tell me what am
> I doing wrong. Below is my gridview. I am showing only one template column. I
> have around 14 template column in the gridview.
>
>
> <asp:GridView ID="dgAgentActivity" runat="server"
> AutoGenerateColumns="false" CellPadding="0" CellSpacing="1"
> BackColor="AliceBlue" OnRowCreated="dgAgentActivity_RowCreated"
> ShowFooter="true" >
> <Columns>
>
> <asp:templatefield headertext="SwitchTime" >
>
> <itemtemplate>
> <%#Eval("SwitchTime")%>
> </itemtemplate>
> <footertemplate>
> <asp:label id="SwitchTime" runat="server"/>
> </footertemplate>
> </asp:templatefield>
> <columns>
>
> Thanks.
>