rp
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Have a look at DataGridView1.Columns().De faultCellS tyle...
On re-read, plusone's comment is probably going to work better since you will be doing multiple, if not all columns.