Click here to Skip to main content
12,692,778 members (33,797 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB VB.NET
Hello,
I have textbox type datagridview column named 'txtGridVdfTag.Text' in which value comes from datatable with databound event.
Problem is when I entered some text in datagridview column after bind the data with datagridview. after press enter sometime
it is deleted from datagridview column. I cannot trap where is problem.
any Idea?

Thanks

If set EditProgrammatically then how can user will enter or edit the text?
Posted 7-Dec-12 21:24pm
Updated 9-Dec-12 21:28pm
v3
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Set Editmode property to EditProgrammatically of datagridview
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

If set EditProgrammatically then how can user will enter or edit the text?
  Permalink  
Comments
Menon Santosh 8-Dec-12 3:45am
   
if you want user to input data and want to avoid accidental lose of data from enter key then there is a option in grid use can press esc key to undo last value

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 10 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100