|
-
Oct 24th, 2008, 07:40 PM
#1
Thread Starter
Hyperactive Member
[2008] Getting SelectedIndex of ListView For DataRow When . . .
Alright. I have a List View:
and 3 Buttons
First Button : ALL
Second Button : Incomplete
Third Button : Complete
Now I have a Access Database that has Data In it, and a Column called Completed.
The Rows Either have True or False for that Column.
Now when I click Incomplete only the Rows with False in it will show, and vice versa for Complete.
This all works. But now I run into a Problem.
Here is some Test Data for my Problem:
Code:
1 False 09/09/09
2 False 09/08/08
3 True 09/07/07
So now those will show in ALL, but When I click COmplete, only "3" will show, but when I go to click on it, and Click Edit to Fill my Text Boxes with the Data, It gets the Data from the Selected Index ("0") which would get data for "1".
So here is my Code to Get the Index & Load to Text Boxes, I don't know how to get the Selected Item to load for that piece of Item.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|