Get Multiple DataKeyname Values from Gridview RowCommand in Asp.net

Get multiple datakeyname values from gridview rowcommand in asp.net DataKeyNames="yourColumnName" If we want to get this DataKeyNames value from gridview in rowcommand event we will get it like this protected void gvUserInfo_RowDataCommand(object sender, GridViewCommandEventArgs e) { GridViewRow gvrow; string str = gvUserInfo.DataKeys[gvrow.RowIndex].Value.ToString(); } If we want to declare multiple DataKeyNames values we will declare it as DataKeyNames="Column1,Column2,Column3" Now if we want get these DataKeyNames values we will declare it like this

Display data on Click of Row in GridView using Jquery and Web Service in Asp.net

Display data on Click of Row in GridView using Jquery and Web Service in Asp.net //Table Script————————————————–------------------------------------------------------- CREATE TABLE [tblgrid]( [UserId] [int] IDENTITY(1,1) NOT NULL, [userName] [varchar](50) NULL, [City] [varchar](50) NULL, [Designation] [varchar](50) NULL, [sal] [bigint] NULL ) Design Page or Aspx Page---------------------------------------------------------------

Display data on Click of Row in GridView using Jquery in Asp.net

Display data on Click of Row in GridView using Jquery in Asp.net //Table Script-------------------------------------------------- CREATE TABLE [tblgrid]( [UserId] [int] IDENTITY(1,1) NOT NULL, [userName] [varchar](50) NULL, [City] [varchar](50) NULL, [Designation] [varchar](50) NULL, [sal] [bigint] NULL ) Aspx Page or Design Page-------------------------------------------