Header Alignment in System.Windows.Foms.DataGrid
I am having a problem of aligning the header of the datagrid. I want my text in a column of datagrid to be aligned to left and the header of that column to be aligned to center.
I have tried the following code but the problem is that this code just aligns the whole column (along with header and text) to left.
So, friends, if you know, please tell me how can I align the text and the header differently.
Datagrid dgrd=new System.Windows.Form.DataGrid();
DataGridColumnStyle myStyle=new DataGridTextBoxColumn();