473,394 Members | 1,717 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Help with dropdownlist - Dataview

I searched around but cannot find an answer to this problem, if there
is an answer.

I have a DataView and a dropdownlist both on the same page. The
dropdown list is a bound list of companies. The DataView shows the
company details and you can delete a record, if necessary. If you
change the selection on the dropdown list, the DataView is refreshed.
This works fine. The problem I am having is that if I delete the
record on the Dataview I need to be able to dynamically refresh the
dropdown list to show that the deleted record is no longer iin the
dropdown.

Anyone know how to do this? I currently have a "refresh" button but
would like to automatically refresh the list. If this is do-able, is
there example code available?

Thanks,
Steve

Nov 3 '07 #1
1 3188
On Nov 4, 1:19 am, glb...@gmail.com wrote:
I searched around but cannot find an answer to this problem, if there
is an answer.

I have a DataView and a dropdownlist both on the same page. The
dropdown list is a bound list of companies. The DataView shows the
company details and you can delete a record, if necessary. If you
change the selection on the dropdown list, the DataView is refreshed.
This works fine. The problem I am having is that if I delete the
record on the Dataview I need to be able to dynamically refresh the
dropdown list to show that the deleted record is no longer iin the
dropdown.

Anyone know how to do this? I currently have a "refresh" button but
would like to automatically refresh the list. If this is do-able, is
there example code available?

Thanks,
Steve
Hi Steve,

Did you tried subscribe the onItemDeleted event of the DetailView.
Try Rebind the Dropdown list onItemDeleted event of the DetailView

Thanks

Masudur

Nov 4 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: VMI | last post by:
My Web dropdownlist with AutoPostback equal to true has code in its SelectedIndexChanged Event . When I change the dropdownlist value and the SelectedIndexChanged Event is executed, the page does...
2
by: Daniel | last post by:
I'm new to .Net and all of its abilities so I hope this makes sense. Basically I'm confused on when is the appropriate time to use web forms controls vs. regular HTML. For example in ASP...
4
by: Yahya Saad | last post by:
Dear All, I have an ASP.Net webform that includes a DropDownList (bound to a dataview including 6000 records) and a textbox that is updated according to the selection of an event at the...
6
by: VB Programmer | last post by:
I have an itemtemplate in a datagrid. I'm trying to set it's value based on data. Having no trouble with the textbox. But, how do I do the same thing for a dropdownlist???? <ItemTemplate>...
1
by: jimb | last post by:
I can get the dropdownlist into the datagrid, and I can populate it, but I can't read it. Anybody have a working example of a dropdownlist in an editable grid? Thanks. -- .....
1
by: Santosh | last post by:
Hii I am binding data to dropdownlist but when i am binding data to it i want to add one records programatically at the top the dropdownlist . here i am writting code like BindDropdownlist()...
11
by: Santosh | last post by:
Dear all , i am writting following code. if(Page.IsPostBack==false) { try { BindSectionDropDownlist();
0
by: bh | last post by:
I'm trying to edit data in a datagrid through a dropdown list with different id/text values. The problem comes in when I click the edit button & nothing appears to be happening. Did I do...
0
by: jyuan | last post by:
Hi, I have two dropdownlist template columns in datagrid. Once the first one (Test Type, in column index 2, ID="ddlTestTypeID") selection changed, I need to re-bound the second dropdownlist (test...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.