473,405 Members | 2,294 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,405 software developers and data experts.

Gridviev Equivalent To Datagrid In Asp.Net?

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?

Nov 9 '06 #1
1 2439
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/archiv...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
-------------------------------------------------------
"Tarun" <ta**************@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
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?

Nov 9 '06 #2

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

Similar topics

1
by: Vannela | last post by:
Is there any equivalent control in .NET for the Power builder DataWindow control? I am explaining the Datawindow architecture to some extent. Power Builder DataWindow Control has got different...
3
by: Derrick | last post by:
What is the C# equivalent of JTable? I need a UI that contains a table with variable rows, that I can add combo boxes and buttons to for columns. Thanks in advance! Derrick
2
by: Sunkam Santhoshi | last post by:
Is there any equivalent control in .NET for the Power builder DataWindow control? I am explaining the Datawindow architecture to some extent. Power Builder DataWindow Control has got different...
1
by: Brent Mondoux | last post by:
Hey everyone, I'm trying to find the best non-spaghetti code way to do the equivalent of a ColdFusion CFQUERY GROUP command so that I can display a FAQ with categories as follows: -- Example:...
0
by: donnet | last post by:
To those familiar with Java beans, question on how to do with ASP.NET: I come from J2EE and starting to learn ASP.NET and C#. I want to find a way to display a web form filled with data taken...
1
by: Mad Scientist Jr | last post by:
can someone explain how to simply populate a grid in .net ? the way i understand it, there is no more msflexgrid, and instead is this new control that has to be tied to a dataset, and it is a real...
1
by: .NETn00b | last post by:
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 =...
7
by: Mitchell S. Honnert | last post by:
Is there an equivalent of the DataGrid's DataGridTableStyle for the DataGridView? If not, is there an easy way to duplicate the DataGridTableStyle's functionality for the DataGridView? Here's...
3
by: vivekian | last post by:
Hi, Trying to place the styling properties of a datagrid in a CssClass. What would be the equivalent for 1. cellpadding 2. cellspacing 3. gridlines properties of a datagrid in CSS .
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.