GridLines not working in RADGRid

4 posts, 0 answers
  1. Bharat
    Bharat avatar
    10 posts
    Member since:
    Oct 2010

    Posted 16 Nov 2010 Link to this post

    Hi All,


    GridLines are not working in RadGrid. Autogenerated columns = true


    my coding:

     

    <

     

     

    telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource"

     

     

     

     

     

     

     

    OnDetailTableDataBind="RadGrid1_DetailTableDataBind"

     

     

     

    AutoGenerateHierarchy="true" GridLines="Both"

     

     

     

    oncolumncreated="RadGrid1_ColumnCreated1" Skin="WebBlue" >

     

     

     

     

     

     

     

     

    </telerik:RadGrid>

     




    Bharat Rathore
  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 16 Nov 2010 Link to this post

    Hello Bharat,

    Please refer to this code library: http://www.telerik.com/community/code-library/aspnet-ajax/grid/how-to-add-or-remove-radgrid-borders.aspx

    Kind regards,
    Pavlina
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Bruce
    Bruce avatar
    5 posts
    Member since:
    Mar 2016

    Posted 29 Jun in reply to Pavlina Link to this post

    the question (which I also need answer to) was about GridLines.

    Unhelpful answer was about Borders.

  5. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 01 Jul Link to this post

    Hello,

    The GridLines property is of no use when build in skins are used, because it renders the obsolete rules HTML attribute, which is easily overridden by any CSS styles that may define borders. Therefore I recommend you use the approach presented in the code library to achieve your goal.

    Regards,
    Pavlina
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top