Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Flexgrid Major Problems


Reply
 
Thread Tools Display Modes
  #1  
Old 03-14-2003, 02:44 AM
supra80 supra80 is offline
Centurion
 
Join Date: Mar 2003
Posts: 143
Unhappy Flexgrid Major Problems


Hi Everyone

I have a MSFlexgrid which populates with data when a user clicks a button. They can then search for another partcular customer and need to hit the same button to get the new customers orders, my problem is that I cant get rid of the blank rows once the user has hit the button again, also if the user has choosen a customer who has less orders in the grid then the previous one that old data still shows!

These grids are really starting to annoy me, can someone please help me.

Thank you in advance

Supra
Reply With Quote
  #2  
Old 03-14-2003, 03:07 AM
Optikal's Avatar
Optikal Optikal is offline
Codeaholic

Retired Leader
* Guru *
 
Join Date: Oct 2002
Location: Winnipeg, MB, Canada
Posts: 4,543
Default

just clear the grid (MyGrid.Rows = MyGrid.FixedRows), then populate it with the new data addng as many rows as needed.
__________________
There are 10 types of people in this world, those that understand binary, and those that don't.
Reply With Quote
  #3  
Old 03-14-2003, 03:39 AM
supra80 supra80 is offline
Centurion
 
Join Date: Mar 2003
Posts: 143
Cool

Thank You So Much Optikal. I have been stuck on this for so long and was trying to write a complex function to do this and it was as easy as doing that. I feel so silly!

Thanks
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
One Flexgrid depending on another millennm Database and Reporting 0 02-25-2003 06:00 PM
FlexGrid Auto Scrolling shadowrun General 3 01-29-2003 07:46 PM
dump records from flexgrid? ne00 Database and Reporting 1 10-01-2002 07:46 PM
FlexGrid problem fizbim General 12 09-27-2002 12:41 PM
Passing a FlexGrid to a Procedure VBtaylor General 2 06-03-2002 03:48 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
 
 
-->