Results 1 to 4 of 4

Thread: invisible datagridview line

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2004
    Posts
    277

    invisible datagridview line

    hihi...

    i am trying to use datagridview as to tidy up my layout of the data as well as to make my application a more dynamic one. however, is it possible to set the datagrid line to invisible, so that the data is displyed without any alignment.

    example,
    when using table property in MS words, the data is tabulated nicely in a table form, but when the doc is printed out, the table line is not shown.

    ??
    ocw

  2. #2
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: invisible datagridview line

    Set GridLineStyle property of the DataGrid to None.
    Use [code] source code here[/code] tags when you post source code.

    My Articles

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: invisible datagridview line

    The DataGridView doesn't have a property that dictates whether the grid lines are visible or not like the DataGrid. It would seem that you need to set the GridColor property to match the colour of the Cells, which will be Window by default.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: invisible datagridview line

    Seems like this belongs to .NET 2.0.
    Use [code] source code here[/code] tags when you post source code.

    My Articles

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width