Design Side:- Part of GridView

asp:templatefield visible="false"
itemtemplate
asp:label id="lblCSV" runat="server" text="" /
/asp:label
/itemtemplate
/asp:templatefield



C# Code:-

protected void GV_Rooms_RowCommand(Object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "Amenity")
{
String CSV = "";

int index = Convert.ToInt32(e.CommandArgument);
GridViewRow selectedRow = GV_Rooms.Rows[index]; 
CSV = ((Label)selectedRow.FindControl("lblCSV")).Text;
}
}

