DataGrid new Column Style not creating new rows correctly

K

k992637

Dear All

I am having trouble with my datagrid custom column style which shows a
combo box. I have derived from a DataGridTextBoxColumn for simplicity.
It is almost working exactly how I would like it to, but I have
problems with the new row behaviour. I would really like it to behave
in the same way as the DataGridTextBoxColumn when you work with new
rows. Specifically, that means

1. If you click in the new row at the bottom of the data grid and then
click away without editing the contents you do not get a new row added
to the data source or the datagrid

2. If you click in the new row and edit the contents the changes are
propogated to the underlying data source, and when you change the value
you also get a "new" new row beneath the one you started editing in the
data grid.

I am having particular trouble with getting the datagrid to extend down
and add the new, new row insertion at the bottom, beneath the new row
that the user has just added. I hope this makes sense. If you play
around with a data gird you can see what I mean from the point of view
of the normal text box column style. What I want to know is how this
is implemented so that I can replicate it in my code. I have a call to
base.edit in my edit command but that is not enough ...

If anyone can help me shed some light on this I would be very grateful.

Regards
David Smith
 

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