Click here to Skip to main content
15,910,603 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all;


Creating a web application, in which data is fetched from web services on a button click. Gridview code is as follows

ASP.NET
<asp:GridView ID="GridView1" runat="server" GridLines = "None"
            onrowdatabound="GridView1_RowDataBound" >
       <Columns>
    <asp:TemplateField>  
    <ItemTemplate >  
    <input id="radiobtn" name="radiobtn" type="radio"  runat="server" 
     önclick="CheckRadio(this.id);" />  
    </ItemTemplate>
    </asp:TemplateField>
         </Columns>
         </asp:GridView>



Other 2 columns are:
CustomerID
CustomerName


This all functionality is working fine...but now my team leader wants me to add a box border on 2colums.


Can any one please help me with this task.
Posted
Updated 16-Dec-11 6:08am
v2

You can do this via CSS styles. Create styles for borders and then attach them to the columns by setting the ItemStyle to the particular CSS.
 
Share this answer
 
Comments
PJ003 17-Dec-11 7:08am    
I tried this...but its not working as my requirement
Can any one help me with the css script or C# code to do this task..

Thank You !!!
Prajwal
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900