?
Solved

DataGridTableStyle Column Count

Posted on 2004-10-11
7
Medium Priority
?
412 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

771 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