Automatically selecting a datagrid row

D

dew

How can I automatically select a grid based on the value of the
commandargument in the select link button?

When a user clicks on Select, the row he/she selects is highlighted, and the
command argument's value = ID (or the id field of the table that is the
datasource of the grid).

If I already have a value of the ID, I want to automatically select the grid
that has that value. How can I do that? In VB please, I don't understand
C -- for instance someone had a sample of
if (ID)
{
e.Item.BackColor = Color.Blue;
}

which makes no sense. What does (ID) mean, and how does it compare the
value of the record with the value that is being passed? And how does it
make the command argument equal to that value? Thanks so much for your help
and patience.
 

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

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top