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 tBoxColumn
logically hosts cells that enable displaying and editing of text strings.
ADataGridViewTex tBoxColumn
has an associatedDataGridViewTex tBoxCell
object in everyDataGridViewRow
that intersects it. When aDataGridViewTex tBoxCell
becomes activated, it supplies aDataGridViewTex tBoxEditingCont rol
control 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