Solved

DataGridTableStyle Column Count

Posted on 2004-10-11
7
406 Views
Last Modified: 2008-02-01
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
0
Comment
Question by:LandyJ
  • 3
  • 2
7 Comments
 
LVL 4

Expert Comment

by:eozz_2000
ID: 12282262
MsgBox(Me.DataGridTableStyle1.DataGrid.VisibleRowCount)
0
 
LVL 7

Author Comment

by:LandyJ
ID: 12282304
Thanks, eozz, but I need the number of columns in this view (datagridtablestyle), the dataset row count
0
 
LVL 4

Expert Comment

by:eozz_2000
ID: 12282394
Ups... let me understand... you have a dataGrid filled with 2 dataGridTableStyle objects... and you need to know the row count of... who?
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 7

Author Comment

by:LandyJ
ID: 12282483
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).
0
 
LVL 7

Author Comment

by:LandyJ
ID: 12282591
I found it.   Thanks anyways.

datagrid1.TableStyles(0).GridColumnStyles.Count()
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 12326335
Closed, 250 points refunded.
CetusMOD
Community Support Moderator
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now