Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 7th, 2006, 09:10 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 107
Thanks: 0
Thanked 0 Times in 0 Posts
Default editable datagrid column

hi all

how can i make a datagrid column editable?(in vb.net)

can anyone please guide me in this context?

thanks in advance


 
Old September 7th, 2006, 09:12 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Use an EditCommandColumn.

"The one language all programmers understand is profanity."
 
Old September 7th, 2006, 11:39 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 107
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi

instead of editcommandcolumn,

i added a templatecolumn, and inside the itemtemplate i put one textbox and bindend it with the column in table.

in the result page, it appears as a editable field,

my problem is that, the column name appears one more time as usal

format

quantity prname unitprice quantity tax

the first column appears as editable

HOW CAN I GET RID OF THIS SECOND "QUANTITY"

if i remove quantity field frm select statement, errors are coming

can you please guide me in resolving this problem?

thanks in advance





 
Old September 7th, 2006, 02:45 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

It sounds like you are explicity binding a datagrid column to a datatable column twice. In anycase you can change the column headers by adding HeaderText="something" to your templatecolumns.

"The one language all programmers understand is profanity."





Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't read values from editable datagrid collie ASP.NET 1.x and 2.0 Application Design 5 May 9th, 2007 11:16 AM
editable datagrid .............help maddy137 ASP.NET 1.0 and 1.1 Professional 0 May 17th, 2006 07:33 PM
DataKey error in Editable datagrid hoailing22 ASP.NET 1.0 and 1.1 Basics 2 June 10th, 2005 10:51 PM
Convert Fully Editable DataGrid To F Edit Gridview gtjr92 ASP.NET 2.0 Basics 0 May 4th, 2005 12:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.