Solved

DataGridTableStyle Column Count

Posted on 2004-10-11
7
408 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

809 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