PDA

Click to See Complete Forum and Search --> : [RESOLVED] datagridview


basti42
Jul 19th, 2007, 06:32 PM
about datagrid, anybody here how to solve these:

1. remove bold in datagrid header and cell
2. header text alignment in datagrid
3. change header font in datagrid
4. getting the sum in cells

in design time i set the font to normal, but when i run it shows bold font both header and cell is this a bug?
(the only i did is hide some columns in the datagrid)

tnx...

nmadd
Jul 19th, 2007, 07:09 PM
1-3) Change the header's font properties in the ColumnHeadersDefaultCellStyle:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridview.columnheadersdefaultcellstyle(vs.80).aspx

4) You can create an expression data column.
http://msdn2.microsoft.com/en-us/library/system.data.datacolumn.expression(vs.80).aspx

Hope that helps. :)

basti42
Jul 19th, 2007, 08:11 PM
tnx to this links
i'll try to sort what do i need to set the datagrid dynamically


tnx again