Link to home
Start Free TrialLog in
Avatar of rp
rpFlag for Portugal

asked on

Vb. Net Programmatically format datagrid columns

I have a datagridview that loaded dynamically through a datatable. Columns come from multiple tables and not have the same name. What was intended is to format the column in the grid, depending on the datatype of column data in datatable. Eg. if data type decimal, is right-justified. If data type date, is centered. ...
ASKER CERTIFIED SOLUTION
Avatar of plusone3055
plusone3055
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Have a look at DataGridView1.Columns().DefaultCellStyle...
On re-read, plusone's comment is probably going to work better since you will be doing multiple, if not all columns.