problem accessing the value of a hyperlinkcolumn

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
 
C

Chris

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
 
B

Bauer

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top