RE: vb6 - Another DataGrid question

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Peter Huang (v-phuang_at_online.microsoft.com)
Date: 06/23/04

  • Next message: Peter Huang: "RE: VB6 - DataGrid SelStartRow and SelEndRow"
    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.


  • Next message: Peter Huang: "RE: VB6 - DataGrid SelStartRow and SelEndRow"

    Relevant Pages

    • RE: How to Fix Columns width?
      ... you do databinding paging for your DataGrid ... this is because some the Text in the DataGrid table cell has ... to do with DataGrid server control. ... you may specify a column width value that is ...
      (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
    • Re: how to set datagrid column width ?
      ... For DataGrid control, it will render as html element at client ... you specify all the items' width to ... So it will render a "width" attribute for each td(Except the first row, ...
      (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
    • Filtering a datagrid
      ... I have a Datagrid that I have created in VSNet2003. ... the columns using the GUI form editor, ... The filter didn't do ... Page_Load event I specify the DataSource of the new DataGrid: ...
      (microsoft.public.vsnet.general)
    • Re: Hyperlink column
      ... > I have a datagrid with a hyperlink column. ... So I can specify only one ... > NavigationUrl to all rows. ...
      (microsoft.public.dotnet.framework.aspnet)