Solved

DataGridTableStyle Column Count

Posted on 2004-10-11
7
410 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
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to limit User Input 2 34
Convert Ctime to date time in textfile? 7 63
ASP.NET Calendar Control 5 29
Need help with another query 10 39
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

726 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