Error in DataGrid

rizwan

New member
Joined
Mar 7, 2005
Messages
2
Programming Experience
1-3
myGridTableStyle.GridColumnStyles(0).Alignment = HorizontalAlignment.Center

I want to align my columns in a datagrid
when i write this code error comes:

System.Argumentoutofrangeexception
 

TPM

Well-known member
Joined
Dec 7, 2004
Messages
623
Location
CA
Programming Experience
3-5
Have you added the grid column styles?
TPM
 
Top Bottom