I used the following code.
BOOL CcolumnDlg::OnInitDialog()
{
CDialog::OnInitDialog();
m_List.InsertColumn(0,_T("Employee No"),LVCFMT_CENTER, 100);
m_List.InsertColumn(1, _T("Employee Name"), LVCFMT_CENTER, 80);
return TRUE; // return TRUE unless you set the focus to a control
}
Data in Employee No field is supposed to appear in center alignment but appears in Left alignment.
View is set as 'Report' only.