DataGrid Edit

J

Jim Heavey

Hello, I am trying to learn who to do edits inf the
datagrid.

When I press the "edit" button, I create a dummy row in
my datatable with default values, set the EditItemIndex
to the index of the row just added. When the row is
displayed, none of my default values show up in the data
row which is presented.

I created an "EditItemTemplate" with all columns
presented. I attempted to bind each of the textboxes to
the datatable, but I get the following error "'TextBox'
cannot have children of type 'DataBoundLiteralControl'".

How do I get the values I placed into the data table row
into the control in the "EditItemTemplate"?

Thanks in advance for your assistance!!!!!!!!!!
 
J

Jim Heavey

I got it to work, although I am not quite sure why what I
had did not work.

I found and example where both the Label and the textbox
property of "text" was set to the Databinder.eval
(container.datafield, "fieldName"). Why doesn't the
property of "Text" show up in help? Once I did this then
it bound just fine in both the edit and in the non-edit
mode.
 

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

Top