How do I databind a TextBox in EditItemTemplate?

M

morrisb

Simply put - I want the data in my rows to appear in various controls when I
click Edit.

My datagrid contains several template columns and I'm using
DataBinder.Eval(Container.DataItem, fieldname) to bind data in my
ItemTemplates.

However, I can't seem to use it for the TextBoxes in my EditItemTemplates.
All the examples I can find say to set the Text property - but that does not
seem to exist anymore and generates a schema error if I manually enter it.

How do I do this? Thanks!
 
P

Patrick.O.Ige

Try posting some snippet code!
You can just bind it to the text property and you will get
what you want
Patrick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,139
Messages
2,570,805
Members
47,355
Latest member
MavoraTech

Latest Threads

Top