problem accessing the value of a hyperlinkcolumn

  • Thread starter Thread starter Bauer
  • Start date Start date
B

Bauer

I have a datagrid whose rows contain checkbox and
hyperlink columns(containing employee_id field retireved
from database). Once the user checks the checkboxes i
need to get the employee ids whose checkboxes were
checked.

To retireve the employee_id i was looping throught the
datagrid items and trying to get the employeeid from the
first column as

dg1.items(i).cells(1).text

But this gives me a null value.
How can i make this work.

Thanks in advance
 
The first column would be this:

dg1.items(i).cells(0).text

You are probably grabbing the checkbox column and that has a text value of
null.

Hope that helps
Chris
 
no my first column is a checkbox and second is a
hyperlinkcolumn. So i was trying to access the value
using dg1.items(i).cells(1).text This way of retrieving
works if my employee_id was a boundcolumn. when i changed
it to hyperlink column it does not work.
 
Back
Top