pokemon Posted August 22, 2003 Posted August 22, 2003 Hi I have a form which allows users to edit the information about an image. On the form there are loads of textboxes etc and a listbox. The Listbox displays a list of subjects which are available to be picked. this is populated by calling a function which return values from a SQL call. I have managed to populate the listbox with these options and the value previously selected by the user which is stored in the database. What i need to know is how to selected (highlight ) the first option in the listbox. I know of the listbox1.setselected(listbox1 type thing but none of these calls to the listbox work because its inside the datagrid. Any advise / information greatly appreciated. john. Quote
Administrators PlausiblyDamp Posted August 22, 2003 Administrators Posted August 22, 2003 http://msdn.microsoft.com/msdnmag/issues/03/08/DataGrids/default.aspx give a good way of doing it and a sample application Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
pokemon Posted August 22, 2003 Author Posted August 22, 2003 cheers for the link but i'm still abit confused. I have tried doing this is a repeater, but i cannot link to the listbox. I think my fundimentals are a bit wobbly, but surely there must be a way of calling a list box or any other dynamic list object from within another object. thanks again john. Quote
Administrators PlausiblyDamp Posted August 22, 2003 Administrators Posted August 22, 2003 My bad - thought you were talking about windows forms. try http://www.codeproject.com/aspnet/DataGridDemo.asp Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
pokemon Posted August 27, 2003 Author Posted August 27, 2003 Hi Thanks for that, its making a bit more sense now. I had managed to find bits of information but nothing which put it all together for me. Cheers john.;) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.