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

Thread Tools Display Modes
Old 04-26-2003, 02:09 PM
VBBrazil VBBrazil is offline
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
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


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

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


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.

Reply With Quote

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 05: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 11:48 PM
MSHFlexGrid And RemoveItem keybs Database and Reporting 1 08-22-2002 09:59 AM


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.
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
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..