Grid View Problem
Hello i would like to add a link button in the grid view along with the predefined ones as Assign. This will be shown in grid view. What i need is when i click on this i would like to have some execution to be occurred how it will be possible..


Subramanyam RompicherlaRank #4,887 · 320 reputationPosted Jun 23, 2009, 5:00 AM EDT
I hope below code will be use for you
private void GridView1_RowCommand(object sender, System.Web.UI.WebControls.GridViewCommandEventArgs e)
{
if (e.CommandName == "Select") {
//Write the Stuff here
}
if (e.CommandName == "Scrap") {
//I do my stuff here
}
}
Dorababu MekaRank #457 · 5.5K reputationPosted Jun 23, 2009, 5:31 AM EDT
My grid view looks as follows
Course name Course Id Faculty Select User
-----------------------------------------------------------------------
ASP Asp101 XYZ Edit/Assign |
-----------------------------------------------------------------------
C# C#101 ABC Edit/Assign |
------------------------------------------------------------------------
and so on
What i need is when i click on assign i will redirect to another page there i will display all student names in a grid view as follows
Student name Student Email Registered Courses Options
-------------------------------------------------------------------------------------------------------
Abc [email protected] reg Checkbox
--------------------------------------------------------------------------------------------------------
Abc [email protected] reg Checkbox
----------------------------------------------------------------------------------------------------------
and so on ..
For this i need to write