Results 1 to 2 of 2

Thread: DataGrid Problem

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2003
    Location
    Cape Cod, US
    Posts
    292

    DataGrid Problem

    I'm trying to get at a specific cell in a datagrid, as in:

    VB Code:
    1. DataGrid1.Items(0).Cells(1).Text
    This works fine for bound columns but if the column is defined as
    a hyperlink column I'm just getting an empty string.

    My workaround is to use a hidden bound column but I'd rather
    know what I'm doing wrong...

    Any ideas? Thx!

  2. #2
    Hyperactive Member
    Join Date
    Dec 2001
    Location
    Dublin, Ireland
    Posts
    262
    I think you can probably iterate controls in a cell and access the hyperlink control when found:-

    dim ctrl as control
    for each ctrl in DataGrid1.Items(0).Cells(1).Controls
    if typeof ctrl is hyperlink then
    ctype(ctrl, hyperlink).whatever=whatever
    end if
    next

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width