Highlight Specific Row in DG?

J

James Goodman

I have a stored procedure which is the datasource for my grid. This is
called daTaskHistory. It contains a UNION select statement, returning
current & historical data. A column, [CurrentR] will be 1 for the current
record, & 0 for historical records.

I want to highlight the current record within my grid. I have seen existing
samples, such as
(http://www.dotnetjunkies.com/HowTo/CD157079-5F60-4031-8BFB-9F8C7478D586.dcik),
but I need to read a specific value from my sp, not a user entered value.
Furthermore, the column [CurrenR] is not actually part of the grid, although
it is part of daTaskHistory.


Any suggestions?
 
E

Eliyahu Goldin

James,

You can add CurrentR to the datagrid as a hidden column. Then in
ItemDataBound event you can modify visual properties of data items (the
rows) depending on the CurrentR column value for the row.

Eliyahu
 
J

James Goodman

Worked perfectly. Thanks...

--
Cheers,

James Goodman
Eliyahu Goldin said:
James,

You can add CurrentR to the datagrid as a hidden column. Then in
ItemDataBound event you can modify visual properties of data items (the
rows) depending on the CurrentR column value for the row.

Eliyahu

James Goodman said:
I have a stored procedure which is the datasource for my grid. This is
called daTaskHistory. It contains a UNION select statement, returning
current & historical data. A column, [CurrentR] will be 1 for the current
record, & 0 for historical records.

I want to highlight the current record within my grid. I have seen existing
samples, such as
(http://www.dotnetjunkies.com/HowTo/CD157079-5F60-4031-8BFB-9F8C7478D586.dci
k),
but I need to read a specific value from my sp, not a user entered value.
Furthermore, the column [CurrenR] is not actually part of the grid, although
it is part of daTaskHistory.


Any suggestions?
 

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

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,082
Members
48,773
Latest member
Kaybee

Latest Threads

Top