Datagrid Problem

Posted on 2006-04-24
Medium Priority
Last Modified: 2010-04-23
I have a datagrid with readonly property set to false. When I make changes to the grid and leave the cell, the grid doesn't store the new information. When I check datagrid.item(currentrowindex,column) it still shows old info. Why?
Question by:khebert1
  • 3
  • 2
LVL 34

Expert Comment

by:Brian Crowe
ID: 16527624
try calling currencymanager.endcurrentedit before checking the value...

ctype(bindingcontext(datagrid.datasource), currencymanager).endcurrentedit


Author Comment

ID: 16527665
What happens is as soon as I leave the cell I am editing, the value goes back to the original value. I have done this on a previous program with no problems at all. I just can't figure out why the value won't hold.
LVL 34

Accepted Solution

Brian Crowe earned 2000 total points
ID: 16527878
make sure that your datasource is set to allow edits as well as the tablestyle and datacolumns

Author Comment

ID: 16527944
Demo please!

Author Comment

ID: 16528078
I was setting column.nulltext = vbNullString
this was causing all my problems.

thanks for pointing me in the right direction


Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Loops Section Overview
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question