Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > How do I get the Column Index?


Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2004, 11:16 AM
dcat's Avatar
dcat dcat is offline
Junior Contributor
 
Join Date: Sep 2002
Posts: 217
Default How do I get the Column Index?


I'm using a datagrid and a flexgrid. I want to know how do you get the index of the column when you click on it. I want to be able to hide the column if they click on it by setting the width to 0 but I need to know what the index is. Any ideas?
Reply With Quote
  #2  
Old 02-26-2004, 11:18 AM
00100b's Avatar
00100b 00100b is offline
Martian In Disguise

Retired Moderator
* Guru *
 
Join Date: May 2003
Location: Minneapolis, MN
Posts: 9,566
Default

The Col and Row properties of the control should identify the Column and Row respectively.
__________________
The only stupid question is the one that goes un-asked.
Reply With Quote
  #3  
Old 02-26-2004, 02:18 PM
dcat's Avatar
dcat dcat is offline
Junior Contributor
 
Join Date: Sep 2002
Posts: 217
Default

Ahhh I see... thank you my friend
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
hide/show a form's border in run time with api setwindowlong wolfmanzeev API 4 04-08-2003 04:10 AM
Sort Problem xzer0cool General 10 12-13-2002 04:57 PM
A nicer way to move a borderless form Merrion Code Library 2 07-18-2002 08:40 AM
Pausing VBA after a Shell Command matt_wendling Word, PowerPoint, Outlook, and Other Office Products 10 10-10-2001 09:07 AM
VB Help jdn6705 General 4 02-27-2001 01:50 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->