Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a gridview and a textbox in a web page.
The first 2 columns "ID" and "Item" are binding from SQL database and the last one is "Barcode" which is a template column.
I'd like the Barcode column to be filled in values from textbox one by one.
After all Barcode coulmns are filled in, then it will be updated to database.
Is that possible to set values into gridview, not binding from database?
BTW, if you know how to do it, please reply in VB.

Thanks
Posted
Updated 11-May-10 21:33pm
v2

1 solution

andyhcc wrote:
Is that possible to set values into gridview, not binding from database?

Yes it is possible. Set AutoGenerateColumns="false" and then in your code bind the columns that you want to a specific field returned from the database.


andyhcc wrote:
I'd like the Barcode column to be filled in values from textbox one by one.

You already made it a template column, now once you filled all, have save event, capture the values in those textboxes and save it in the database.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900