REGISTER
|
Search Tycoon Talk
|
Freelancer.com
|
Members
Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.
Register Here
Forum Rules
.NET Forum
You are currently viewing our .NET Forum as a guest. Please
register
to participate.
Login
Remember Me?
Login via Freelancer.com
Tycoon Talk
>
Web Development and Programming Support
>
ASP.NET Forum
>
.NET Forum
>
read dropdownlist value from GridView?
Link Back
Thread Tools
Search this Thread
read dropdownlist value from GridView?
05-06-2010, 04:54 AM
#
1
(
permalink
)
read dropdownlist value from GridView?
EngAhmad
Experienced Talker
Posts: 37
Name: ahmad
Trades:
0
Talkupation:
Dears,
How I can read the value of dropdownlist from grid view
for label column i read it as below
GridView1.Rows[e.RowIndex].Cells[1].Text.ToString();
but for the column have drop down list i cant read use this way
please help me
Thanks
Register
now for full access!
05-06-2010, 06:13 AM
#
2
(
permalink
)
Re: read dropdownlist value from GridView?
EngAhmad
Experienced Talker
Posts: 37
Name: ahmad
Trades:
0
Talkupation:
i find the solution but when enter the value of dropdownlist to data base always take first value at index zero
07-26-2010, 10:19 PM
#
3
(
permalink
)
Re: read dropdownlist value from GridView?
blogdog
Super Talker
Posts: 112
Trades:
0
Talkupation:
Do you have preset values assigned in your database or are do you have them hardcoded within the control property?
07-27-2010, 07:39 AM
#
4
(
permalink
)
Re: read dropdownlist value from GridView?
stbuchok
Extreme Talker
Posts: 246
Trades:
0
Talkupation:
DropDownList ddl = GridView1.Rows[e.RowIndex].FindControl("DropDownListID") as DropDownList;
if(ddl !+ null)
{
Do stuff...
}
this will give you the dropdownlist you are looking for the you can grab the value, the text the ... whatever you need.
__________________
Please login or register to view this content.
Registration is FREE
Please login or register to view this content.
Registration is FREE
Please login or register to view this content.
Registration is FREE
08-28-2010, 02:26 AM
#
5
(
permalink
)
Re: read dropdownlist value from GridView?
sbglobal79
Banned
Posts: 11
Name: Raj singla
Trades:
0
Talkupation:
thanks you for this infromation
« Reply to
read dropdownlist value from GridView?
Previous Thread
|
Next Thread
Tycoon Talk
>
Web Development and Programming Support
>
ASP.NET Forum
>
.NET Forum
>
read dropdownlist value from GridView?
Thread Tools
Search this Thread
Show Printable Version
Email this Page
Search this Thread
:
Advanced Search
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
Off
Pingbacks
are
Off
Refbacks
are
Off
Forum Rules
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Tweet this thread
Page generated in
0.20862
seconds with
12
queries