Grid View Command field Select not working

  • 12 years ago

    hi

    i have a grid view and a detail view in a page when i click on select(command field ).it does not show data in detail view when i click on another row in grid view it shows  pervious row data of grid view  in detail view

    my coad is

    protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)

    {

    DetailsView1.PageIndex = GridView1.SelectedIndex;

    }

    and i am handling data source through code .through grid view i m not selecting data source.

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil.” - Donald Knuth