Ive spent two hours on what shouldnt even be a problem...
Here goes:
I have a listView controll on my website which sits inside a table.
The listview has edit/delete/insirt templates which all do as they should. They each have a button to corrospond with each action.
My problem is this, clicking anywhere on the listview sets focus to the first row of the listview, specifically the delete button.
So if I click 'edit' on a particular row when entering the new data in the relevant text box focus still gets set to the first delete button.
Meaning if im not paying attention and just hit enter it deletes the first record.
No where in my code do i set focus to this and ive got no idea what to do to unset focus on it, any ideas would be welcome as ive lost the ability to think now,
Cheers
Malb




Reply With Quote