windowsform datagrid modigy data in cell problem

R

Raul Cortes

Hi.

I am using a windowsform datagrid to modify a table. The DataSet seems to be
filled fined. The DataTable seems to be ok. I am not using 'read only'
anywhere.
The DataSource seems to be well asigned. The DataMenber assigned to the
table.

One column of the DataSet is decimal type.

For some rare reason I am unable to modify the data on this 'amount' column.

When editing, i am able to input data into the column, but as soon as I
press tab to
go to next column, the original data shows again in the cell i was trying to
modify.

Two questions.
a.) Any hint on how can I get the input data work properly?,
b.) is there some sort of "textchanged" event (from text box control)
where i can 'catch' the text being input in the cell, to assign it directly
to the data row? or something?
Thanks,


Raul
 
R

Raul Cortes

Upssssss.....
Checking and re-checking i found that the DataColumns in the DataSet
was 'readonly' (it was originated in a calculated field on the database,
so the drag & drop function created the DataTable with the column read
only).

Also found that even I can not determine whether the cell in the datagrid
is being changed, i found the "ColumnChanging" event in the DataTable
wich did let me check up the proposed value before is is assigned ...


Thanks for reading. :)

Raul
 

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