Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Database and Reporting > MSHFlexGrid removeitem


Reply
 
Thread Tools Display Modes
  #1  
Old 04-26-2003, 02:09 PM
VBBrazil VBBrazil is offline
Banned
 
Join Date: Mar 2003
Posts: 555
Default MSHFlexGrid removeitem


There is a way to remove all items of the MSHFlexGrid at once?
Reply With Quote
  #2  
Old 04-26-2003, 02:21 PM
Robse's Avatar
Robse Robse is offline
Senior Contributor

* Expert *
 
Join Date: Sep 2002
Location: Karlsruhe, Germany
Posts: 1,319
Default

Code:
FlexGrid.Clear

Edit: You need to remove rows & columns manually, e.g:

Code:
Flexgrid.Cols = 0
__________________
Posting Guidelines MSDN-VB API List Use [vb]...[/vb] tags for code!
Reply With Quote
  #3  
Old 04-26-2003, 02:30 PM
VBBrazil VBBrazil is offline
Banned
 
Join Date: Mar 2003
Posts: 555
Talking

Robse,

Thank you! It works!
Sometimes solution is so simple that our eyes can't see it.

I was attempting to remove rows one by one (with a loop) and it was not working, when the simple solution was to reset the row numbers. BTW, I tried the clear method before but it not remove the rows, just blank the existing ones.

Cheers!
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
Refresh a MSHflexgrid Craigg Database and Reporting 2 02-16-2004 04:46 AM
ComboBox Within A MSHFlexgrid verno_25_02 Database and Reporting 3 06-18-2003 08:08 AM
RemoveItem in MSHFlexgrid? jollyguy4all General 0 04-15-2003 08:18 AM
Problem adding a row in a MSHFlexGrid after I use removeitem jabrego General 19 03-17-2003 10:48 PM
MSHFlexGrid And RemoveItem keybs Database and Reporting 1 08-22-2002 09:59 AM

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
 
 
-->