0
got it SATYAPRIYA... thank u thank u!!!!
0
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
TextBox5.Text = GridView1.SelectedRow.Cells[1].Text;
TextBox2.Text = GridView1.SelectedRow.Cells[2].Text;
TextBox3.Text = GridView1.SelectedRow.Cells[3].Text;
TextBox4.Text = GridView1.SelectedRow.Cells[3].Text;
}
using this code for displaying values of gridview rows in textbox, lyk dis need to display selected gridview values in dropdown.
0
Hi,
In that case you need to make use of GridView SelectedIndexChanging event of your gridview control. Below is the code for the same.
protected void gvwGrid_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
{
GridViewRow row = (GridViewRow)gvwGrid.Rows[e.NewSelectedIndex];
for (int i = 0; i < row.Cells.Count; i++)
{
Response.Write(row.Cells[i].Text);
}
}
In the above code I'm just displaying the values. you can do whatever is your scenario.
Hope that solves your problem.
With Regards,
Vishal Gilbile.
0
thank u for ur reply..
using AutoGenerateSelectButton in
gridview properties.
0
Hello Friend,
For selection which control you are using I mean whether you are using a Checkbox or a link button and also whether your gridview is making use of Template Field or not.
With Regards,
Vishal Gilbile.