Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using a modalviewextender (in ajax)in which i have a gridview and in that i have
a Select Commandbutton. Now what i want is :- On clicking on any of the select commandbutton, i should be able to reteieve the value againest that particulr row (for example- in cell[0] )


Secondly, How controlID should i place in front of the property -"OkControlID" so that it gets the value of that particular cell.

Quick help would be appreciated.

Regards.
Posted

on Row command
C#
protected void cmd_transfer(object sender, GridViewCommandEventArgs e)
  {
      int index = Convert.ToInt32(e.CommandArgument);
      GridViewRow row = GridView1.Rows[index];
      ViewState["fileno"] = row.Cells[2].Text;

      this.modal1.Show();
  }
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900