dans la série 'mieux vaut tard que jamais'...
mais bon ca peut toujours servir, et j'aime pas les messages sans réponse :
datagrid1.datasource = ds.tables("tatable")
datagrid1.suspendlayout()
dim ah as new datagridtablestyle()
dim bh as datagridcolumnstyle
bh = new datagridtextboxcolumn()
bh.mappingname = "nom_col1"
bh.headertext = "Un titre accrocheur, mais pas trop raccoleur quand meme"
bh.width = 80 'en guest....
ah.gridcolumnstyle.add(bh)
bh = new datagridtextboxcolumn()
bh.mappingname = "nom_col2"
...
ah.gridcolumnstyle.add(bh)
ah.mappingname = "tatable"
datagrid1.tablestyles.add(ah)
datagrid1.resumelayout()
et le tour est joué !
.Maytheforcebewithyou.Maxime.