We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Setting default cell borders on databoundgrid

How do I set the default cell border weight on a databoundgrid to extrathin? I thought it would be through grid.tablestyle.borders.left.weight but this is read only.

1 Reply

Administrator August 20, 2004 02:30 PM UTC

You need to create a new object with code like grid.Tablestyle.Borders.Left = new GridBorder(GridBorderStyle.Solid, Color.Black, GridBorderWeight.ExtraThin); // or whatever you want
Loader.
Live Chat Icon For mobile
Up arrow icon