Gridviev Equivalent To Datagrid In Asp.Net?

T

Tarun

In asp.net 2.0 Gridview is equivlent to Datagrid in asp.net1.1.. with
more facialities. Datagrid Item Command is Equivalent to RowCommand in
Grid View. But from the grid view command how can i get the reference
to the row which is firing the event as we did in case of DataGrid as
shown below?

void dataGrid_ItemCommand(object source, DataGridCommandEventArgs e)
{
string test=e.Item.Cells[0].Text;
}
In Grid view Rowcommand is it possible to get the reference to the row
like
string test=e.Row.Cells[0].Text;
or in any other way?
If not what is the equivalent to it?
 
A

Alvin Bruney [MVP]

It's not an equivalent. It's a replacement due to some of the intrinsic
support contained in the gridview and absent in the datagrid.

I would try to explain the problem you are having but esposito already did
here: http://weblogs.asp.net/despos/archive/2005/06/30/416783.aspx

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
 

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,994
Messages
2,570,222
Members
46,809
Latest member
moe77

Latest Threads

Top