473,503 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I Bind The DropDown In Listview In edit Mode onSelectyIndexChange

2 New Member
Hi,
I m Binding a Listview,In edit Mode I M binding a Dropdown(Country) through other database and onselectIndexChange of this Dropdown i m binding three Dropdown bt Country is not in my table so i wnt full Fill the Ther dropdown when we click on Edit Option which i Have Insert the data through this three dropdown so plz suggest
Apr 7 '10 #1
2 2814
MrMancunian
569 Recognized Expert Contributor
Stop using abbreviations and use punctuation marks! This is unreadable!

Steven
Apr 7 '10 #2
bimal0131
2 New Member
Expand|Select|Wrap|Line Numbers
  1. protected void DropDownAction_selectechange(object sender, EventArgs e)
  2.         {
  3.             try
  4.             {
  5.                 string strv = "";
  6.                 string str = e.ToString();
  7.                 //((sender)DropDownList).;
  8.                 strv = ((DropDownList)sender).SelectedValue.ToString();
  9.                 str = ((DropDownList)sender).ClientID;
  10.                 string[] strarr = str.Split('_');
  11.                 string stindex = strarr[1].Replace("ctrl", "");                DropDownList ddlresion = ((DropDownList)(LVJobDetails.Items[Convert.ToInt32(stindex)].FindControl("DropDownListActionReasonId")));
  12.  
here i m nt Finding Index of DropDownList with master page bt without Master Page its working Very well so Plz suggest how can I find the Index here
Apr 7 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
3776
by: Dmitry Korolyov [MVP] | last post by:
Is that possible? In other words, I want a dropdown list (and other list-type controls) which appears in edit more of a templated column to be populated with data at the run time. An attempt to do so...
0
1908
by: VbScripter | last post by:
In the code below, I have an editItemTemplate that will have to have a long list of ip's bound to it. The problem is that the lisbox is not seen by asp.net until after the datalist containing it...
10
1864
by: HABJAN ®iga | last post by:
Ok, the trouble: On form: Mask (lots of textboxes & ...) Listview 1 as Listview with some items booEdit as boolean=False intEditIndex as integer Scenario:
0
2608
by: George | last post by:
This is driving me crazy. I have a listview that has LabelEdit set to true. In the AfterLabelEdit event, I do my validation on the label text. If the label isn't valid, it sets e.canceledit = true...
4
29511
by: Dabbler | last post by:
I have two tables I'm editing in a Gridview. The VANS table contains a key to the other LESSOR table. I would like to use a dropdown list to select the LessorId value while displaying the Lessor...
0
2895
by: cindy | last post by:
I have a dynamic datagrid. I have custom classes for the controls public class CreateEditItemTemplateDDL : ITemplate { DataTable dtBind; string strddlName; string strSelectedID; string...
2
10835
by: shapper | last post by:
Hello, I am working with a ListView but I suppose that with a GridView might be the same. Instead of having an Insert Button on each GridView row I would like to have only one Insert button,...
0
1404
by: progman417 | last post by:
I have a gridview with a dropdown list in an EditItemTemplate. I haven't set a width for the columns, so that they dynamically size according to the data displayed. When it goes into edit...
1
2583
by: NvrBst | last post by:
ListView is in Detailed Mode, and an Item is in EditMode (ListViewItem.BeginEdit()), how, if any, would I get the currently highlighted portion of the text? Basically I have a ctrl-c shortcut...
0
999
by: kimbred | last post by:
Does anyone know what I need to do to retain the value of a dropdown column in my dataview when I go into edit mode? When I go into edit mode for a row, the dropdown is filled and the first item in...
0
7083
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7328
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7456
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5011
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3166
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3153
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1510
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
379
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.