View Single Post
  #11 (permalink)  
Old August 2nd, 2005, 04:29 AM
Raghavendra_Mudugal Raghavendra_Mudugal is offline
Friend of Wrox
Points: 687, Level: 9
Points: 687, Level: 9 Points: 687, Level: 9 Points: 687, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2004
Location: Chennai, Tamilnadu, India.
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Vinay

For that you can use this

Private Sub Form_Load()
For q = 1 To Me.MSHFlexGrid1.Rows - 1
    Me.MSHFlexGrid1.ColData(1) = q
    Me.MSHFlexGrid1.RowData(q) = q
Next
End Sub

Private Sub MSHFlexGrid1_Click()
MsgBox Me.MSHFlexGrid1.RowData(Me.MSHFlexGrid1.RowSel)
End Sub

ColData and RowData stores extra numeric information that we can
use programatically. And those values are not visible to
any one.

Hope this helps

With Regards,
Raghavendra Mudugal
Reply With Quote