Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - DetailsView Edit.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

DetailsView Edit.

 Post Reply Post Reply
Author
davidshq View Drop Down
Senior Member
Senior Member


Joined: 29 July 2003
Location: United States
Status: Offline
Points: 299
Post Options Post Options   Thanks (0) Thanks(0)   Quote davidshq Quote  Post ReplyReply Direct Link To This Post Topic: DetailsView Edit.
    Posted: 23 November 2005 at 8:38pm
I want to use the DetailsView in ASP.NET 2.0 to edit records - but I have a problem. By default the DetailsView gives me little tiny textboxes - I need textboxes with scroll bars. Any ideas how to accomplish this? No luck this far googling. Thanks.
David.
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 25 November 2005 at 11:25am

It is very simple really:

Go to edit Fields, select the field you want to change and select "Convert to Template Field."

 
After that, select that template field from the Template Editor (Edit Items View)
 
 
There you can stretch out the box as you want or replace it with whatever else you want (if you replace controls you need to redo the data binding)
 
 
And voila you got a multi-row textbox
 
 
The code for that looks like this:
 
(edit) let me know if you need the code. wwg does not paste nicely from VS.


Edited by michael - 25 November 2005 at 11:25am
Back to Top
davidshq View Drop Down
Senior Member
Senior Member


Joined: 29 July 2003
Location: United States
Status: Offline
Points: 299
Post Options Post Options   Thanks (0) Thanks(0)   Quote davidshq Quote  Post ReplyReply Direct Link To This Post Posted: 25 November 2005 at 6:25pm
Thanks very much Michael. That was great. Loved the screenshots too.
David.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.