473,386 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

problem accessing the value of a hyperlinkcolumn

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

Nov 21 '05 #1
4 1112
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
"Bauer" <an*******@discussions.microsoft.com> wrote in message
news:00****************************@phx.gbl...
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

Nov 21 '05 #2
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
"Bauer" <an*******@discussions.microsoft.com> wrote in message
news:00****************************@phx.gbl...
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

Nov 21 '05 #3
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.

-----Original Message-----
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 ofnull.

Hope that helps
Chris
"Bauer" <an*******@discussions.microsoft.com> wrote in messagenews:00****************************@phx.gbl...
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

.

Nov 21 '05 #4
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.

-----Original Message-----
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 ofnull.

Hope that helps
Chris
"Bauer" <an*******@discussions.microsoft.com> wrote in messagenews:00****************************@phx.gbl...
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

.

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jongmin | last post by:
Hi! I am making HyperLinkColumn in datagrid. It is simple to make the hyerlinkcolumn with one datafield. <asp:HyperLinkColumn Text="NAME" DataNavigateUrlField="NAME"...
0
by: Atif Jalal | last post by:
I am using a Datagrid control and one of its column is a 'HyperLinkColumn'. The link text for this HyperLinkColumn is sometimes beyond 100 characters. I would like to display the link on multi-line...
9
by: Paul | last post by:
Hi I have a data grid with a hyperlink column. the colum has numbers like 00001,000002, ect. Just wondering how to get the text value of the cell as tempstring =...
1
by: Craig | last post by:
I have a datagrid with a couple of columns. Right now, I'm setting assigning the dataview to the datasource. For the HyperLinkColumn.... <asp:HyperLinkColumn...
0
by: Bauer | last post by:
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...
0
by: virendra.chandra | last post by:
in datagrid cellpadding is not working. can u suggest what could be the possible error. this is my code <asp:datagrid id="test1" Runat="server" Width="700" Enabled="True"...
2
by: Donkey | last post by:
Hi, Despite the many examples i can't find the right way to pass a value of a datagrid to another form. So could someone please explain me what i am doing wrong. so i have a datagrid with an...
3
by: settyv | last post by:
Hi, I need to generate PDF stream when i click on Linkbutton in datagrid ..At present i hardcoded the DMS Id and now it is working.But i need to pass DMS ID when click linkbutton.How can i do...
3
by: TB | last post by:
On a user control (ascx) I have a datagrid with a hyperlink column containing the following code: <asp:HyperLinkcolumn headerstyle-width="80px" ItemStyle-Width="80px" DataNavigateUrlField="ID"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.