DataGridView -Value does not gets saved if selection is not lost from a cell

前端 未结 6 867
暖寄归人
暖寄归人 2020-12-16 03:53

I am using the DataGridView Control for reading and writing an XML file through XML Serialization.

I have an issue as explained below:

  1. I read an XML fi
6条回答
  •  佛祖请我去吃肉
    2020-12-16 04:20

    You can get the value of a cell which is not yet committed using the EditedFormattedValue property for the current cell, as below

    dataGridView1.CurrentCell.EditedFormattedValue
    

提交回复
热议问题