Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual 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 Dev Shed Forums Sponsor:
  #1  
Old May 5th, 2003, 08:45 AM
shafan's Avatar
shafan shafan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 123 shafan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 51 m 51 sec
Reputation Power: 7
MSFlexGrid row selection problem :: RESOLVED

Hi,
I have a MSFlexGrid on a form.
In design time the grid has:
2 Rows (to allow Fixed Rows=1)
10 Columns (Fixed Cols=0)
Selection Row = By Row

I format it at run time as follows:
Rows=0
Fixed Rows=0
and then populate it by constructing a string from recordset data and adding it to the grid. Once all the records have been added I add the headers string at position 0 and set FixedRows = 1.

The problem is that I don't get the row select happening!
When I press a row it doesn't get highlighted.
I created a demo form with a grid and some hard-coded data in it and it all works fine!
I can't put my finger on what's the problem.

Help would be appreciated!
thanx

Last edited by shafan : August 5th, 2003 at 11:11 PM.

Reply With Quote
  #2  
Old August 5th, 2003, 03:19 PM
navya navya is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 4 navya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hi,
try these
Private Sub MSFlexGrid_Click()
MSFlexGrid.AllowBigSelection = False
MSFlexGrid.SelectionMode = flexSelectionByRow
End Sub

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > MSFlexGrid row selection problem


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 6 hosted by Hostway