LandyJ
asked on
DataGridTableStyle Column Count
Is there a way to get the column count from a DataGridTableStyle? I have a couple of different table styles, and I need to get the column count for each one at different times. Is there a way to do that wthout having to use module variables when I create each one? I can't use the column count of the datasource because I am using the table styles to dislay just a subset.
Thanks,
Landy
Thanks,
Landy
MsgBox(Me.DataGridTableSty le1.DataGr id.Visible RowCount)
ASKER
Thanks, eozz, but I need the number of columns in this view (datagridtablestyle), the dataset row count
Ups... let me understand... you have a dataGrid filled with 2 dataGridTableStyle objects... and you need to know the row count of... who?
ASKER
My bad. I forgot the word NOT in my last comment. It should hav ebeen "not the dataset row count." I need the COLUMN count of the DataGridTableStyle (the number of columns included in that object).
ASKER
I found it. Thanks anyways.
datagrid1.TableStyles(0).G ridColumnS tyles.Coun t()
datagrid1.TableStyles(0).G
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.