473,782 Members | 2,534 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Grid selection need to run routine

I have a need to automatically save a record when a user leaves me form.
Everything works great unless the user uses the grid and selects an item via
a link column. Then I can't capture the record save (whihc I do via images
buttons; save and add detail record). The routine runs the btn_save command
for me (then I determine is save new or modify).

Any ideas on how to run my routine if the user selects a grid item (detail
item)?
Here's the template column:

<asp:TemplateCo lumn HeaderText="vie w" HeaderStyle-CssClass="gridq text"
ItemStyle-CssClass="gridt ext">
<ItemTemplate >
<asp:Hyperlin k Width="55" runat="server" Text= 'view detail'
NavigateUrl='<% # "concern_detail .aspx?cn=" &
DataBinder.Eval (Container.Data Item,"Concern_N umber").tostrin g & _
"&d=" & DataBinder.Eval (Container.Data Item,"Concern_D ID").tostring %>'
ID="Hyperlink1 "/>
</ItemTemplate>
</asp:TemplateCol umn>

Thanx!
Nov 19 '05 #1
1 1077
solved by replacing with a linkButton and keying off the Command name,
arument, etc.

"Chris" wrote:
I have a need to automatically save a record when a user leaves me form.
Everything works great unless the user uses the grid and selects an item via
a link column. Then I can't capture the record save (whihc I do via images
buttons; save and add detail record). The routine runs the btn_save command
for me (then I determine is save new or modify).

Any ideas on how to run my routine if the user selects a grid item (detail
item)?
Here's the template column:

<asp:TemplateCo lumn HeaderText="vie w" HeaderStyle-CssClass="gridq text"
ItemStyle-CssClass="gridt ext">
<ItemTemplate >
<asp:Hyperlin k Width="55" runat="server" Text= 'view detail'
NavigateUrl='<% # "concern_detail .aspx?cn=" &
DataBinder.Eval (Container.Data Item,"Concern_N umber").tostrin g & _
"&d=" & DataBinder.Eval (Container.Data Item,"Concern_D ID").tostring %>'
ID="Hyperlink1 "/>
</ItemTemplate>
</asp:TemplateCol umn>

Thanx!

Nov 19 '05 #2

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

Similar topics

1
4948
by: Bhom | last post by:
I am trying to create a grid on a form that looks like the 'Split Transaction' grid in Quicken - it allows drop down controls in various cells of grid to make a selection, and then stores the text of the drop down list/combo boxes in the grid. I know how to use hidden combo/list boxes that display when a user clicks on a cell that is setup with the drop down button and event. However, when the user makes a selection, the ID (bound...
5
21574
by: Faiz | last post by:
Dear Experts, We are currently using True DB Grid 7.0 with VB6 on Windows 2000 platform. Our objective is to display Excel like formatted data (in rows and columns), allow users to perform cut/copy and paste operations on the selected range of cells and, lastly to get data entered by the users in different cells for further processing. Now the users report that this grid control is difficult to use and the behaviour(in terms of user...
0
1404
by: Steve | last post by:
Hi I have a db with 2 tables that I want to bind to a grid depending on a selection in a Dropdownlist Also I want to be able to select a row from the gris to fill some textboxes. The databases are static in that they will not be updated they are just for viewing I have everything working but not to perfection
1
2000
by: Steve | last post by:
Hi I have a db with 2 tables that I want to bind to a grid depending on a selection in a Dropdownlist Also I want to be able to select a row from the gris to fill some textboxes. The databases are static in that they will not be updated they are just for viewing I have everything working but not to perfection
3
1349
by: Tina | last post by:
I have a grid with a select button. I went to turn off AutoPostBack and there is no such attribute. Is there any way to make a grid behave as would a listbox and not autopost back upon the selection? Thanks, T
3
4292
by: Wayne | last post by:
I need to make a simple grid in which the user can cut and paste the contents of a region of cells from this simple grid to excel. I thought about ganging a bunch of textboxes (1 textbox = 1 cell) together which would work for me but I cannot cut and paste a collection of cells to excel using this approach. Any ideas where to go next? I know I can buy such a capability and have done so in the past but I would like to write it in...
0
884
by: Thaddius39 | last post by:
Hello all, I'm very new to asp.net and very green with programming in general. I did however take some VB in college. Anyway, here is my issue. I'm trying to set up a web application where an individual can make a selection from a data grid view. From that selection I want to place the value in a variable, then inject that variable into SQL string, which is a attached to a SQLDataSource object. From there the query is ran against...
3
2315
by: Chris Marsh | last post by:
Hello, Is it possible w/ASP.Net to set the property of the radio button control to 'read-only' after the user has made their selection before hitting an 'submit' button? Think of a multiple choice question, in our case it's 'Accept', 'Not Accept' or 'Pending' in a grid column. There are multple rows in the grid maybe 2, 3 or even 10 rows and we want to make it so that the user, when they select 'Accept' in say the second row that the...
1
1700
by: Suresh Kumar | last post by:
Hai all, I need to display some text for each row header in the data grid. that is ., I need to display the text in the gray part for each row starting in the data grid. Can anyone help me to solve this problem?
0
9641
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10146
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9944
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7494
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
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 we have to send another system
3
2875
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.