Display grid lines at runtime?

Posted on 2007-12-03
Medium Priority
Last Modified: 2012-06-27

I want to show grid lines at runtime in my windows form.  Is this possible? I can see examples of this in windows designer but not at runtime.

Question by:Confusioner
1 Comment
LVL 10

Accepted Solution

Alpesh Patel earned 1500 total points
ID: 20396006
what exectly u want to do
u want the user to ineract with UI and change the GridView with Grid Lines......
or u just want to show it statically.

u can do it with the

grd.DisplayLayout.GridLinesDefault = Both | None | Horizontal | Vertical

you can select any of them and u can change the view of your grid


Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
An ASP.NET Web Form User Control is not newly introduced in ASP.NET. In fact, it was an old technology yet still playing a role to generate web content, especially when we want to use it to have a better and easy way to control part of the web conteā€¦
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question