473,387 Members | 1,431 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,387 software developers and data experts.

Combo's inside a datagrid

i have to combo's in the footer of my datagrid. the combo1 is populated on
load. but the combo2 can only populate after an item in combo1 has been
selected

is there anyway of getting the SelectedIndexChanged event in the codebehind
for combo1?

or how else would i do it?

Cheers,
Craig
Nov 19 '05 #1
3 1069
Hi,

Check this one out:
http://aspnet.4guysfromrolla.com/art...51904-1.2.aspx

"Craig G" <craig.gamble@y_arrasoftware.com> wrote in message
news:#f**************@TK2MSFTNGP09.phx.gbl...
i have to combo's in the footer of my datagrid. the combo1 is populated on
load. but the combo2 can only populate after an item in combo1 has been
selected

is there anyway of getting the SelectedIndexChanged event in the codebehind
for combo1?

or how else would i do it?

Cheers,
Craig

Nov 19 '05 #2
"Craig G" <craig.gamble@y_arrasoftware.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
i have to combo's in the footer of my datagrid. the combo1 is populated on
load. but the combo2 can only populate after an item in combo1 has been
selected

is there anyway of getting the SelectedIndexChanged event in the
codebehind
for combo1?


Have you tried using <asp:DropDownList runat="server" id="combo1"
OnSelectedIndexChanged="combo1_SelectedIndexChange d" />? Make
combo1_SelectedIndexChanged Protected so that the page can access it.

John Saunders
Nov 19 '05 #3
nice one cheers Shiva & John for that!!
"John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
news:uw**************@TK2MSFTNGP12.phx.gbl...
"Craig G" <craig.gamble@y_arrasoftware.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
i have to combo's in the footer of my datagrid. the combo1 is populated on load. but the combo2 can only populate after an item in combo1 has been
selected

is there anyway of getting the SelectedIndexChanged event in the
codebehind
for combo1?


Have you tried using <asp:DropDownList runat="server" id="combo1"
OnSelectedIndexChanged="combo1_SelectedIndexChange d" />? Make
combo1_SelectedIndexChanged Protected so that the page can access it.

John Saunders

Nov 19 '05 #4

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

Similar topics

0
by: CNU | last post by:
I'm new to c# and datagrid. I'm using a combo box inside a data grid control. (ref to Microsoft Knowledge Base Article - 323167 http://support.microsoft.com/default.aspx? scid=kb;EN-US;Q323167). ...
1
by: Savvas | last post by:
Hi! I would like to have the datagrid in a combo box style for entering data. Is this possible? If yes, any help would be highly appreciated. thanks
4
by: Mike L | last post by:
I'm open for any suggestions on how to better program this. I want the user to select a license from a combo box, cboPrivilege and then the user will click the add button, then a record will be...
0
by: JL3574 l | last post by:
i have a datagrid with a combo box added in it's columns . the combobox pulls values from a database in it's dropdownlist fashion. my problem is that when i pick a select on the combo box it...
3
by: Doug | last post by:
Hi I have the following code (not mine) that populates a datagrid with some file names. But I want to replace the datagrid with a combo box. private void OnCurrentDataCellChanged(object sender,...
4
by: Steve Chatham | last post by:
I have a page where I have some combo boxes on it. A click on each one spawns another box, and another until each area has been selected, or until they choose to pull all items into a datagrid...
4
by: Ziv Riezman | last post by:
Hi All I Have a datagrid on asp.net. i need to add a combo box column that chages it's data according to a spefiiec row in a datagrid. Please help me ?? Thnaks Ziv Riezman
6
by: Ron L | last post by:
I have a dataset whose source is a SQL 2k stored procedure that I am trying to display in a datagrid. This datasource has 4 columns that I am interested in here, a text column and 3 value columns...
7
by: Ausclad | last post by:
Ok, ill try again..... It seems fairly simple. I have two combo boxes in a datagrid. The datagrid is bound to a a table in a dataset. The two combo boxes are bound to a single data table...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.