Center the text in a datagrid

sempey

Member
Joined
Mar 18, 2003
Messages
14
Location
Des Moines, IA
I have 2 datagrids on my form and I want the text in both of their columns to be centered. I have 2 questions about this.
#1: Is there any way to center text in a datagrid without using the tablestyle and columnstyle properties.
#2: I added a table style to both datagrids, both with a columnstyle that aligns the text to the center, but when I run my form, the text only centers in the first grid. Does anyone know how to "copy" a style from one grid to another?

I have been working on this for an entire day now, so any help would be greatly appreciated.

Thanks ahead of time!
 
Okay, I figured this out. I just needed to use the tablestyle and columnstyle properties correctly by naming them the datatable names and the datatables column names (respectively).
 
Back
Top