How to find getthe textbox value in a datagridview & how to delete it?
How to find textbox value in a datagridview in c#
Collapse
X
-
Tags: None
-
I am assuming that you have a DataGridViewTex tBoxColumn defined in your DataGridView.
The aDataGridViewTex tBoxColumnlogically hosts cells that enable displaying and editing of text strings.
ADataGridViewTex tBoxColumnhas an associatedDataGridViewTex tBoxCellobject in everyDataGridViewRowthat intersects it. When aDataGridViewTex tBoxCellbecomes activated, it supplies aDataGridViewTex tBoxEditingCont rolcontrol to handle user input.
You can handle the DataGridView.Ed itingControlSho wing Event to perform custom logic on how the TextBox within that cell is displayed...
You can handle the DataGridView.Ce llEndEdit Event to retrieve what the user supplied after editing the cell....
I'm not entirely sure what you are trying to do so I guess you will have to check out the documentation that I provided links to and learn how to use this before I can give you any more advice.
Comment