R rizwan New member Joined Mar 7, 2005 Messages 2 Programming Experience 1-3 Mar 9, 2005 #1 myGridTableStyle.GridColumnStyles(0).Alignment = HorizontalAlignment.Center I want to align my columns in a datagrid when i write this code error comes: System.Argumentoutofrangeexception
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 Mar 9, 2005 #2 Have you added the grid column styles? TPM Upvote 0 Downvote