Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Iron Speed
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old September 12th, 2004, 04:15 AM
pennyg pennyg is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 2 pennyg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Flexgrid Delete Column

Is there a simple way to delete a column from within a flexgrid? RemoveItem rowNumber nicely deletes any row however I cannot find the equivalent for a column. Same applies for inserting a column within a group ie insert between cols 2 and 4.

Any help appreciated
frustratedUser

Reply With Quote
  #2  
Old September 12th, 2004, 04:23 AM
pennyg pennyg is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 2 pennyg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I should add to the above post that I am currently setting the column width to 0 so it looks like its deleted but if possible I would like a true delete
thanks again

Quote:
Originally Posted by pennyg
Is there a simple way to delete a column from within a flexgrid? RemoveItem rowNumber nicely deletes any row however I cannot find the equivalent for a column. Same applies for inserting a column within a group ie insert between cols 2 and 4.

Any help appreciated
frustratedUser

Reply With Quote
  #3  
Old June 17th, 2008, 11:26 AM
tdave888 tdave888 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Posts: 1 tdave888 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 25 m 6 sec
Reputation Power: 0
Unhappy deleting columns

Quote:
Originally Posted by pennyg
Is there a simple way to delete a column from within a flexgrid? RemoveItem rowNumber nicely deletes any row however I cannot find the equivalent for a column. Same applies for inserting a column within a group ie insert between cols 2 and 4.

Any help appreciated
frustratedUser


Bad News:
There is no single command/method that deletes a column

Good News:
There's a simple trick that will do the job

Private Sub Command9_Click()

With MSFlexGrid1
'moving the selected column to be the last column of the grid
.ColPosition(.Col) = .Cols - 1
End With

'reducing number of columns by one.. thus removing the last one
MSFlexGrid1.Cols = MSFlexGrid1.Cols - 1

End Sub

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Flexgrid Delete Column


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway