Showing posts with label shtmlto. Show all posts
Showing posts with label shtmlto. Show all posts

Monday, March 26, 2012

oh no! another datagrid dropdown question!

I'm getting there!!!!
I've used the artical http://www.4guysfromrolla.com/webtech/050801-1.shtml
to create my dropdown list from a database. The DDL gets populated! The
artical says, "then set the index as you normally would". Well, what can i
say i can't figure out how to set it.
any ideas would be great!
thanks
kesi guess i need to know where to set the selectedindex as well as how.
thanks
kes
"Kurt Schroeder" wrote:

> I'm getting there!!!!
> I've used the artical http://www.4guysfromrolla.com/webtech/050801-1.shtml
> to create my dropdown list from a database. The DDL gets populated! The
> artical says, "then set the index as you normally would". Well, what can i
> say i can't figure out how to set it.
> any ideas would be great!
> thanks
> kes
You set the index like this:
dropdown.SelectedIndex = 0; // or whatever value you want 1,2,3.
"Kurt Schroeder" wrote:

> I'm getting there!!!!
> I've used the artical http://www.4guysfromrolla.com/webtech/050801-1.shtml
> to create my dropdown list from a database. The DDL gets populated! The
> artical says, "then set the index as you normally would". Well, what can i
> say i can't figure out how to set it.
> any ideas would be great!
> thanks
> kes
thanks for answering.
that will not work because the dropdown list is a child control of the
datagrid. I tried it and i gives me a run time error. even afteri manuelly
decoarred it a protected with events...
but thanks! and please let me know if i'm wrong about this!
kes
"Tu-Thach" wrote:
> You set the index like this:
> dropdown.SelectedIndex = 0; // or whatever value you want 1,2,3.
> "Kurt Schroeder" wrote:
>
How did you get a hold of the DropDownList? Did you use the FindControl
method?
"Kurt Schroeder" wrote:
> thanks for answering.
> that will not work because the dropdown list is a child control of the
> datagrid. I tried it and i gives me a run time error. even afteri manuelly
> decoarred it a protected with events...
> but thanks! and please let me know if i'm wrong about this!
> kes
> "Tu-Thach" wrote:
>
i have it figured out now, thanks.
kes
"Tu-Thach" wrote:
> How did you get a hold of the DropDownList? Did you use the FindControl
> method?
> "Kurt Schroeder" wrote:
>

oh no! another datagrid dropdown question!

I'm getting there!!!!
I've used the artical http://www.4guysfromrolla.com/webtech/050801-1.shtml
to create my dropdown list from a database. The DDL gets populated! The
artical says, "then set the index as you normally would". Well, what can i
say i can't figure out how to set it.
any ideas would be great!
thanks
kesi guess i need to know where to set the selectedindex as well as how.
thanks
kes

"Kurt Schroeder" wrote:

> I'm getting there!!!!
> I've used the artical http://www.4guysfromrolla.com/webtech/050801-1.shtml
> to create my dropdown list from a database. The DDL gets populated! The
> artical says, "then set the index as you normally would". Well, what can i
> say i can't figure out how to set it.
> any ideas would be great!
> thanks
> kes
You set the index like this:

dropdown.SelectedIndex = 0; // or whatever value you want 1,2,3.

"Kurt Schroeder" wrote:

> I'm getting there!!!!
> I've used the artical http://www.4guysfromrolla.com/webtech/050801-1.shtml
> to create my dropdown list from a database. The DDL gets populated! The
> artical says, "then set the index as you normally would". Well, what can i
> say i can't figure out how to set it.
> any ideas would be great!
> thanks
> kes
thanks for answering.
that will not work because the dropdown list is a child control of the
datagrid. I tried it and i gives me a run time error. even afteri manuelly
decoarred it a protected with events...
but thanks! and please let me know if i'm wrong about this!
kes
"Tu-Thach" wrote:

> You set the index like this:
> dropdown.SelectedIndex = 0; // or whatever value you want 1,2,3.
> "Kurt Schroeder" wrote:
> > I'm getting there!!!!
> > I've used the artical http://www.4guysfromrolla.com/webtech/050801-1.shtml
> > to create my dropdown list from a database. The DDL gets populated! The
> > artical says, "then set the index as you normally would". Well, what can i
> > say i can't figure out how to set it.
> > any ideas would be great!
> > thanks
> > kes
How did you get a hold of the DropDownList? Did you use the FindControl
method?

"Kurt Schroeder" wrote:

> thanks for answering.
> that will not work because the dropdown list is a child control of the
> datagrid. I tried it and i gives me a run time error. even afteri manuelly
> decoarred it a protected with events...
> but thanks! and please let me know if i'm wrong about this!
> kes
> "Tu-Thach" wrote:
> > You set the index like this:
> > dropdown.SelectedIndex = 0; // or whatever value you want 1,2,3.
> > "Kurt Schroeder" wrote:
> > > I'm getting there!!!!
> > > I've used the artical http://www.4guysfromrolla.com/webtech/050801-1.shtml
> > > to create my dropdown list from a database. The DDL gets populated! The
> > > artical says, "then set the index as you normally would". Well, what can i
> > > say i can't figure out how to set it.
> > > any ideas would be great!
> > > thanks
> > > kes
i have it figured out now, thanks.
kes

"Tu-Thach" wrote:

> How did you get a hold of the DropDownList? Did you use the FindControl
> method?
> "Kurt Schroeder" wrote:
> > thanks for answering.
> > that will not work because the dropdown list is a child control of the
> > datagrid. I tried it and i gives me a run time error. even afteri manuelly
> > decoarred it a protected with events...
> > but thanks! and please let me know if i'm wrong about this!
> > kes
> > "Tu-Thach" wrote:
> > > You set the index like this:
> > > > dropdown.SelectedIndex = 0; // or whatever value you want 1,2,3.
> > > > "Kurt Schroeder" wrote:
> > > > > I'm getting there!!!!
> > > > I've used the artical http://www.4guysfromrolla.com/webtech/050801-1.shtml
> > > > to create my dropdown list from a database. The DDL gets populated! The
> > > > artical says, "then set the index as you normally would". Well, what can i
> > > > say i can't figure out how to set it.
> > > > any ideas would be great!
> > > > thanks
> > > > kes