How to change padding on cells within a DataGrid - VB.NET -


i trying add padding of cells within datagrid (not datagridview). want there space between walls of cell , text within cells. there way this? have looked , see how datagridview , not datagrid...

here picture of datagrid no padding: no padding within cells

notice how the text pushed tight line on right side.

please help! thank you!

this worked me:

i created css file , added left , right padding td:

td { padding-left: 5px; padding-right: 5px; } 

i added reference css file same markup file datagrid located:

<link href="yourfoldernamehere/yourcssfilenamehere.css" rel="stylesheet" /> 

i did try @tntinmn suggested in comment cellpadding had no luck.

note: unsure if method work in cases or in own. doing td elements take style, in case fine because wanted td elements within every table have padding style.


Comments

Popular posts from this blog

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -