What is the best method to obtain a data value from a parent datagriditem
from a child datagrid - datagrid footer item command event handler?
Here is the layout of my asp.net controls
<datagrid1>
<datagriditem1>
<datagrid2>
<datagridfooter>
<listbox><commandbutton>
</datagridfooter>
</datagrid2>
</datagriditem1>
<datagrid1>
So, the listbox has the child data value ID and the commanditem calls the
insert command. I need to be able to get the parentID from the datagriditem1
in order to associate the child ID with the parentID. I've looked at event
bubbling, but that requires a custom control. How else can I pull the
parentID out of the datagriditem1.
Please email xilord at yahoo dot com if you have a splendid solution.
TIA 3 1751
I'm wondering if there is a better group to post this question???
"Skowronek" <xilord at yahoo dot com> wrote in message
news:OI**************@TK2MSFTNGP09.phx.gbl... What is the best method to obtain a data value from a parent datagriditem from a child datagrid - datagrid footer item command event handler?
Here is the layout of my asp.net controls
<datagrid1> <datagriditem1> <datagrid2> <datagridfooter> <listbox><commandbutton> </datagridfooter> </datagrid2> </datagriditem1> <datagrid1>
So, the listbox has the child data value ID and the commanditem calls the insert command. I need to be able to get the parentID from the datagriditem1 in order to associate the child ID with the parentID. I've looked at event bubbling, but that requires a custom control. How else can I pull the parentID out of the datagriditem1.
Please email xilord at yahoo dot com if you have a splendid solution. TIA
re: I'm wondering if there is a better group to post this question?
Although there's good datagrid experts here,
maybe posting your question for the datagrid control at :
microsoft.public.dotnet.framework.aspnet.datagridc ontrol
would get you more help.
I haven't checked whether your answer is in Scott Mitchell's
marathonic ( 18 parts, so far ) Datagrid Control articles : http://aspnet.4guysfromrolla.com/articles/040502-1.aspx
but you should probably read and bookmark that, too.
Juan T. Llibre
ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
===========================
"Skowronek" <xilord at yahoo dot com> wrote in message
news:ue**************@TK2MSFTNGP15.phx.gbl... I'm wondering if there is a better group to post this question???
"Skowronek" <xilord at yahoo dot com> wrote in message news:OI**************@TK2MSFTNGP09.phx.gbl... What is the best method to obtain a data value from a parent datagriditem from a child datagrid - datagrid footer item command event handler?
Here is the layout of my asp.net controls
<datagrid1> <datagriditem1> <datagrid2> <datagridfooter> <listbox><commandbutton> </datagridfooter> </datagrid2> </datagriditem1> <datagrid1>
So, the listbox has the child data value ID and the commanditem calls the insert command. I need to be able to get the parentID from the datagriditem1 in order to associate the child ID with the parentID. I've looked at event bubbling, but that requires a custom control. How else can I pull the parentID out of the datagriditem1.
Please email xilord at yahoo dot com if you have a splendid solution. TIA
I ended up just setting a string value ondatabind for each parent item. This
appeared to work well.
Thanks for the reply.
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:Oz**************@TK2MSFTNGP11.phx.gbl... re: I'm wondering if there is a better group to post this question?
Although there's good datagrid experts here, maybe posting your question for the datagrid control at : microsoft.public.dotnet.framework.aspnet.datagridc ontrol would get you more help.
I haven't checked whether your answer is in Scott Mitchell's marathonic ( 18 parts, so far ) Datagrid Control articles : http://aspnet.4guysfromrolla.com/articles/040502-1.aspx but you should probably read and bookmark that, too.
Juan T. Llibre ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ ===========================
"Skowronek" <xilord at yahoo dot com> wrote in message news:ue**************@TK2MSFTNGP15.phx.gbl... I'm wondering if there is a better group to post this question???
"Skowronek" <xilord at yahoo dot com> wrote in message news:OI**************@TK2MSFTNGP09.phx.gbl... What is the best method to obtain a data value from a parent datagriditem from a child datagrid - datagrid footer item command event handler?
Here is the layout of my asp.net controls
<datagrid1> <datagriditem1> <datagrid2> <datagridfooter> <listbox><commandbutton> </datagridfooter> </datagrid2> </datagriditem1> <datagrid1>
So, the listbox has the child data value ID and the commanditem calls the insert command. I need to be able to get the parentID from the datagriditem1 in order to associate the child ID with the parentID. I've looked at event bubbling, but that requires a custom control. How else can I pull the parentID out of the datagriditem1.
Please email xilord at yahoo dot com if you have a splendid solution. TIA
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mike |
last post by:
I'm calling a component to get my data. The component is returning a
dataset. I need to populate text boxes on my aspx page with the data within
the datalist.
Where can I find an example that...
|
by: tshad |
last post by:
Is there a way to carry data that I have already read from the datagrid from
page to page?
I am looking at my Datagrid that I page through and when the user says get
the next page, I have to go...
|
by: Adam Knight |
last post by:
Hi all,
I am really trying to find a solution to this problem.
I have a pair of nested data lists.
I want to retrieve a current value out of the parent lists DataItem object...
|
by: sutphinwb |
last post by:
Hi - This could be a simple question. When I relate two tables in a
datasetet, how do I get that relation to show up in a GridView? The
only way I've done it, is to create a separate table in the...
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |