RE: vb6 - Another DataGrid question
From: Peter Huang (v-phuang_at_online.microsoft.com)
Date: 06/23/04
- Previous message: Jezebel: "Re: VB6 - DataGrid SelStartRow and SelEndRow"
- In reply to: Hmmm...: "vb6 - Another DataGrid question"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 23 Jun 2004 07:32:14 GMT
Hi,
I think we can specify the row and then the column to get the value in the
current cell as below.
But the Row property of datagrid means the current visible rows. e.g. if
now we can see 5 rows of the datagrid, then we can not specify the row
property to more than 5.
Private Sub Command1_Click()
Me.DataGrid1.Row = 5
Debug.Print Me.DataGrid1.Columns(0).Text
End Sub
So I think a better method is to query the underlying recordset's column to
get what we wants.
You may try may suggestion and let me know the result.
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
- Previous message: Jezebel: "Re: VB6 - DataGrid SelStartRow and SelEndRow"
- In reply to: Hmmm...: "vb6 - Another DataGrid question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|