473,387 Members | 3,033 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.

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:TemplateColumn HeaderText="view" HeaderStyle-CssClass="gridqtext"
ItemStyle-CssClass="gridtext">
<ItemTemplate>
<asp:Hyperlink Width="55" runat="server" Text= 'view detail'
NavigateUrl='<%# "concern_detail.aspx?cn=" &
DataBinder.Eval(Container.DataItem,"Concern_Number ").tostring & _
"&d=" & DataBinder.Eval(Container.DataItem,"Concern_DID"). tostring %>'
ID="Hyperlink1"/>
</ItemTemplate>
</asp:TemplateColumn>

Thanx!
Nov 19 '05 #1
1 1051
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:TemplateColumn HeaderText="view" HeaderStyle-CssClass="gridqtext"
ItemStyle-CssClass="gridtext">
<ItemTemplate>
<asp:Hyperlink Width="55" runat="server" Text= 'view detail'
NavigateUrl='<%# "concern_detail.aspx?cn=" &
DataBinder.Eval(Container.DataItem,"Concern_Number ").tostring & _
"&d=" & DataBinder.Eval(Container.DataItem,"Concern_DID"). tostring %>'
ID="Hyperlink1"/>
</ItemTemplate>
</asp:TemplateColumn>

Thanx!

Nov 19 '05 #2

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

Similar topics

1
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...
5
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...
0
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...
1
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...
3
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...
3
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...
0
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...
3
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...
1
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...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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.