|
-
Oct 4th, 2002, 03:34 PM
#1
Thread Starter
Lively Member
Selecting the first item in a DataList
Hi
I have created a DataList and I populate it with names and ID's
I wish to select the first item in the data list after it is populated.
Any ideas
Thanks
-
Oct 5th, 2002, 05:19 PM
#2
Member
-
Oct 5th, 2002, 05:41 PM
#3
Thread Starter
Lively Member
Email you what?
What do you wish me to email you?
-
Oct 5th, 2002, 06:01 PM
#4
PowerPoster
Re: Email you what?
Originally posted by Howard7890
What do you wish me to email you?
He is wasting your time.
Can you use a MsFlexGrid rather than a DataGrid?
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Oct 5th, 2002, 06:06 PM
#5
Fanatic Member
Does WattsTech have any friends?
VB 6.0, Access, Sql server, Asp
-
Oct 5th, 2002, 06:06 PM
#6
Member
No, I could ahve had but since you do not want me I will leave this thread.
-
Oct 5th, 2002, 06:07 PM
#7
PowerPoster
Well
Originally posted by ralph
Does WattsTech have any friends?
He is posted crap throughout all the forums. Mods will get him soon...
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Oct 5th, 2002, 06:09 PM
#8
Member
-
Oct 5th, 2002, 06:11 PM
#9
PowerPoster
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Oct 5th, 2002, 10:04 PM
#10
Fanatic Member
Ok, here's how to programatically select (highlight) the first item in datalist:
DataList1.SetFocus
SendKeys "{up}", True
To display the selection:
Text1.Text = DataList1.BoundText
VB 6.0, Access, Sql server, Asp
-
Oct 7th, 2002, 03:25 AM
#11
Doesn't dbgrid have a selected property? or similar?
VB Code:
lstsummat.itemdata(0).selected=true
(just wondering)
Vince
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
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
|