C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

how to get column index of gridview in asp.net


Posted Date: 28 Aug 2008      Posted By: Ravindra Singh      Member Level: Gold     Points: 1   Responses: 4



Dear all,
how to find column index of gridview in SelectedIndexChanging
event on cliking cell value in asp.net





Responses

Author: vipul    28 Aug 2008Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

hi,
using SelectedIndexChanging you only get the selected row you can't get column index

vipul,
http://dongavipul.blogspot.com

Please Rate This Answer If They Helpful

Thanks & Regards
Patel Vipul



Author: RishiRaj    28 Aug 2008Member Level: GoldRating: 1 out of 5     Points: 1

Hi..


protected void gridview1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{

string Empid = gridview1.DataKeys[e.RowIndex].Value.ToString();
}



Author: D.Jeya kumar(JK)    28 Aug 2008Member Level: DiamondRating: 2 out of 52 out of 5     Points: 1

Hi,


Check the below links you can have many options to do that.

Regards
JK



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : Datagrid template column
Previous : Ajax controls
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use