Download
100% FREE
Office Document APIs for .NET
Online: 1321
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Bookmarks
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
ASP.NET
>
Loading ...
I want bind data to dropdownlist in edittamplate in grid view [Resolved]
Posted by
Ramaniranjanit-15272
under
ASP.NET
on 4/26/2012 |
Points: 10
| Views : 3907 | Status :
[Member]
| Replies : 2
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
I attach my file
when debug that file
i got that error
System.ArgumentOutOfRangeException: 'ddltravelby' has a SelectedValue which is invalid because it does not exist in the list of items
Attachment
[Resolved]
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Oswaldlily
on: 4/26/2012
[Member]
Starter
|
Points: 50
0
protected void ddl1_Load(object sender, EventArgs e)
{
DropDownList ddl=(DropDownList)sender;
ddl.DataSource = (...call yur values here...)
ddl.DataValueField = "Column name ";
ddl.DataBind();
}
<asp:DropDownList ID="ddlOrderType" runat="server" Onload="ddl1_load()">
</asp:DropDownList>
Ramaniranjanit-15272
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Veerac85
on: 4/30/2012
[Member]
Starter
|
Points: 25
0
you could refer to this link for complete step-by-step instructions on doing this.
http://technico.qnownow.com/2012/04/05/use-dropdownlist-in-asp-net-gridview-control/
Ramaniranjanit-15272
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
Get +1-833-445-7444 Facebook Customer Support Phone Number
(0)
New
dowload pdf files from server to local .asp.net mvc
(0)
New
Get +1-833-445-7444 Verizon Email Customer Support Number
(0)
New
specific cast is not valid in linq query when compare two tables
(0)
New
SEO(Search Engine Optimization)
(0)
New
Dial Hotmail Customer service Number +1-800-518-0963
(0)
Best Assignment Help Services Provider
(0)
How can a video in the website explain the navbar values?
(1)
More ...