Row in Gridview always selected when selected for edit RRS feed

  • Question

  • Hi everybody,

    I have a sql data base.

    I use as filter for query a listbox in my page.

    When i click on this listbox its displays one or 3 lines in a gridview.


    I have 2 buttons in my gridview which enable editing or deleting.


    My problem:

    If i have A,B,C on the listbox. I select A which displays 1, 2, 3, 4 lines.

    Then I click on the 1st line on edit button, it's allow editing the first line, that it okay.


    But if I'm not clicking on update or cancel and I'm selecting the B on the list box which displays 1,2,3 lines.

    The next selected line for the edition will be the 1st line from B.


    How can I disable to store the selected line when I change the gridview data by selectings another value on my listbox.


    I hope it's understandable


    thanks for your help


    best regards



    Tuesday, January 25, 2011 11:00 AM

All replies