Datagrid Editing question

M

Miri

I am using a datagrid structure that allows users to enter new rows or edit
existing ones. However, some columns are read only and their values depend
on the user input in the other columns. I set the value of the read-only
columns as soon as a cell is edited by using the currentcellchanged event.

This works well only if after editing the contents of the cells I stay
within the same row. If I change the contents of the cell then click into
another row the value that I just changed does not get updated until next
time I click on that row.

Any idea on how to get the value updated even if I leave the row?

Thanks
 
M

miri

Hi

I am currently loading a dataset from a database to the datagrid. How do I
go about adding a datacolumn to the grid?



Thanks for any help,

Miri
 
M

Miri

Thank you, that really helped!

I am still having one problem, I'm not sure how to update the datacolumn's
expression when a new row is added by the user. Any ideas?

Thanks,

Miri
 
C

Cor Ligthert

Miri,
I am still having one problem, I'm not sure how to update the datacolumn's
expression when a new row is added by the user. Any ideas?

Yes that is done automaticly, there is nothing to update, you have said that
that column exist in the table and that an expression should be used for
that.

:)

I hope this helps?

Cor
 

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