Karen,
I've done all that I asked after being told to look at MS sites. I did it
by copying from an MS paper.
Look at
http://msdn.microsoft.com/library/default.asp?URL=/library/techart/griddtc
.htm
which will explain what you can do with the Grid DTC. There is also
http://support.microsoft.com/support/kb/articles/Q229/6/72.asp?FR=0
which explains how to produce an updateable grid.
NB I had problems at first when I failed to ensure that I did EXACTLY as
described, i.e. I didn't initially put the "on_page" code in the header!
If you still have problems, let me know, as the code above works a treat,
in my case the text boxes update the database with out using an "update"
button, any button that moves out of the page updates the database. I am
however using the Interdev scripting object model and page object models
(both of which I still know very little about!!) which I suspect do
something of which I am not aware - but try it and see.
regards
John
----- Original Message -----
From: "Fagan, Karen A (ARINC)" <FaganKA@n...>
To: "Interdev_Programming" <interdev_programming@p...>
Sent: Wednesday, December 27, 2000 4:45 PM
Subject: RE: replacing the Grid Control ?
> Hi,
>
> I also am very interested in doing this and came across this question.
> I have tried your suggestion and it works great as far as getting the
> textbox to display in the grid, but can you tell me how to save the
> information to my database after I have added or changed something in the
> textbox. I tried an update button but that didn't work. I'm still kind
of
> new to all this.
>
> Would appreciate any help or words of wisdom that you may have. I hope
> you don't mind me jumping in on this but I really have been trying to do
> this for sometime.
>
>
> Thanks so much........
> Karen
>
> -----Original Message-----
> From: Hossein Taherzadeh [mailto:mach3@g...]
> Sent: Friday, December 22, 2000 5:04 PM
> To: Interdev_Programming
> Subject: Re: replacing the Grid Control ?
>
>
> Hello
> I hope my answer is not too late. You should do as follow:
>
> 1- Open "Grid properties"
> 2- Choose "Data"
> 3- Push the bottom "Add Unbound Column"
> 4- and then let's say that you have a column "State" in your DB.
> 5- add a text box:
> ="<INPUT type=text value="+ [state]
> +">"
> in Field/experession.
> 6- Call "Header" f. ex. State.
>
> PS: Do not choose "state" as a Available Fields.
>
> Have a nice time
>
> Hossein Taherzadeh
>
>
>
> ----- Original Message -----
> From: <john@t...>
> To: "Interdev_Programming" <interdev_programming@p...>
> Sent: Sunday, December 17, 2000 2:41 PM
> Subject: replacing the Grid Control ?
>
>
> > Hello All,
> >
> > I have a site page that displays the contents of a shopping basket using
a
> > grid, the grid has columns for product name, price and quantity,
> originally
> > the quantities of items were edited on a separate page using text boxes,
> one
> > item at a time having been selected from the grid for this edit page.
> The
> > customer wants the editing to take place on the display page. Is it
> > possible to put a text box in design time grid control for the quantity
> > column and use the change event, or do I have to abandon the design time
> > grid control and replace it with a table where the quantity cells
contain
> a
> > text box?
> >
> > regards
> >
> > John O'Byrne
> >
>
>
---
http://www.asptoday.com - the leading site for timely,
in-depth information for ASP developers everywhere.
---
You are currently subscribed to interdev_programming as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-interdev_programming-$subst('Recip.MemberIDChar')@p2p.wrox.com