How to find textbox value in a datagridview in c#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pavan bimsara
    New Member
    • Oct 2014
    • 1

    How to find textbox value in a datagridview in c#

    How to find getthe textbox value in a datagridview & how to delete it?
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    I am assuming that you have a DataGridViewTex tBoxColumn defined in your DataGridView.

    The a DataGridViewTex tBoxColumn logically hosts cells that enable displaying and editing of text strings.

    A DataGridViewTex tBoxColumn has an associated DataGridViewTex tBoxCell object in every DataGridViewRow that intersects it. When a DataGridViewTex tBoxCell becomes activated, it supplies a DataGridViewTex 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

    Working...