By the way, if all your datagridview have the same properties, under a module you can create a sub to configure them.
You call it under the load Event containing the DatagridViewCode:Public Sub MyDGV_STYLE(DGV as DataGridView) With DGV .DefaultCellStyle.Font = New Font("Tahoma", 11) .DefaultCellStyle.ForeColor = Color.Black .DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleLeft End With End Sub
Reamember you passing the DGV as control/object so its without ""Code:MyDGV_STYLE(YourDGV)




Reply With Quote
