Solved

DataGridView not updating when datasource changes

Posted on 2006-11-15
1
665 Views
Last Modified: 2010-08-05
Hi

I am using a datagridview with the datasource property set to a collection I have created.
This displays the data in the collection but when I add to the collection the datagridview does not get updated.
I have tried update and refresh but they do not help.

All help much appreciated.

Best regards
0
Comment
Question by:alungwyther
1 Comment
 
LVL 13

Accepted Solution

by:
newyuppie earned 250 total points
ID: 17947885
try setting the Datasource = Nothing first, and then resetting it back to your list.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now