What is the Equivalent of the CurrentRowIndex Property for a DataGrid Web Control?

B

Bob Loveshade

I am trying to convert the following windows app method, to use in an
ASP.NET application:

private void DataGrid1_CurrentCellChanged(object sender, EventArgs e)
{

int c = DataGrid1.CurrentRowIndex;
DataGrid1.Select(c);
DataGrid1_Click( sender, e);

}

The problem is that there is no CurrentRowIndex property for the
DataGrid web control. Is there something else I can use, that will give
me similar functionality?

I also need to figure out what I can use in place of the Select method,
which also doesn't exist for the DataGrid web control. Would
SelectedIndex work? Can this method be adapted?

Thanks!!!
 

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
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top