i want to design row and column width 2px and black
how to do so
Right click on the GridView in Visual Studio's Design View and select Properties. In the properties window find BorderColor, BorderStyle, and BorderWidth. Set them as you like.
Also you might consider spending some time on MSDN reading about the GridView.
The best advice for a quick fix... assuming you are using Visual Studio, open your page in Design View. Click on your grid and click the right-pointing arrow on the top-right corner of your grid, and select Auto-Format. This will give you a selection of
formats that you can choose from.
Member
399 Points
1101 Posts
Design For My Gridview
Nov 04, 2016 04:42 PM|asp.ambur|LINK
Hello
See the below
Star
9859 Points
2556 Posts
Re: Design For My Gridview
Nov 04, 2016 05:04 PM|AZMatt|LINK
From what I am seeing, you want to hide the headers and right-align some columns. Here is a quick sample...
Matt
Member
399 Points
1101 Posts
Re: Design For My Gridview
Nov 04, 2016 05:09 PM|asp.ambur|LINK
no no
i want to design row and column width 2px and black
how to do so
All-Star
52091 Points
23212 Posts
Re: Design For My Gridview
Nov 04, 2016 05:15 PM|mgebhard|LINK
Right click on the GridView in Visual Studio's Design View and select Properties. In the properties window find BorderColor, BorderStyle, and BorderWidth. Set them as you like.
Also you might consider spending some time on MSDN reading about the GridView.
https://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview(v=vs.110).aspx
You can also find many tutorials on this site by clicking the "Learn" link above.
Member
399 Points
1101 Posts
Re: Design For My Gridview
Nov 04, 2016 05:28 PM|asp.ambur|LINK
i tried the same bit its not showing column black and row it shows only outer gridview
All-Star
52091 Points
23212 Posts
Re: Design For My Gridview
Nov 04, 2016 06:04 PM|mgebhard|LINK
See the RowStyle property.
You really need to take a few minutes to read the docs...
Member
399 Points
1101 Posts
Re: Design For My Gridview
Nov 04, 2016 06:18 PM|asp.ambur|LINK
row style worked
but for each column how to set same?
All-Star
52091 Points
23212 Posts
Re: Design For My Gridview
Nov 04, 2016 06:21 PM|mgebhard|LINK
Read the docs...
Member
399 Points
1101 Posts
Re: Design For My Gridview
Nov 04, 2016 06:26 PM|asp.ambur|LINK
almost got it please give me idea to make column border color and width
Star
9859 Points
2556 Posts
Re: Design For My Gridview
Nov 04, 2016 07:33 PM|AZMatt|LINK
The best advice for a quick fix... assuming you are using Visual Studio, open your page in Design View. Click on your grid and click the right-pointing arrow on the top-right corner of your grid, and select Auto-Format. This will give you a selection of formats that you can choose from.
Matt
All-Star
52503 Points
15665 Posts
Re: Design For My Gridview
Nov 05, 2016 12:52 PM|oned_gk|LINK
Try this
Suwandi - Non Graduate Programmer