Edit a cell in DataGrid

  • Thread starter Thread starter Pranav Shah
  • Start date Start date
P

Pranav Shah

I have a Windows DataGrid with 6 columns.
The DataSource is a DataTable that gets populated based on user request.
Column 5 & 6 are Expression columns based on Columns 1 & 2 and Columns 3
& 4 repectively.

In the DataGrid I wanto do a few things.
1)Allow user to modify columns 3 - 6.
2)When the user is editing a column he can press Enter or Tab and the
change will be accepted. At this moment the user needs to click on a
different column or different object.
3)I can make edit Columns 5 & 6 but as soon as I loose focus my chages
are not accepted and only the Expression value is acceped.

Any help is appreciated. Thanks.
 
Pranav,

To the best of my knowledge, ASO .NET does not support columns which would
have some cells calculated and some containing raw values. Columns can only
be FULLY calculated. Therefore the DataGrid cannot update values in such
columns and reverts to the original value immediately.
 
Back
Top