Is there any method to connect to dbase via an interface (like configure Data Source in Grdi View & other Data Controls). Open(); Sql Data Adapter da Select = new Sql Data Adapter("SELECT * FROM Employee Table", conn); // Sql Command Builder cb Select = new Sql Command Builder(da Select); Data Set ds Select = new Data Set(); da Select. A lot of advanced features & controlas are available from VS 2005 .
Also, one more hint, once you make some changes after binding a grid to a data source, you do have to TELL the data source to itself.
I have an issue with a simple database editor application I am creating in C#.
Your code seems to be incomplete even if you compare it with the article that you are referring to.
In the article itself, it is the Binding Source which is used to achieve the functionality that you are trying to achieve. Since you seem to be learning about this, i wont give you exact code but pointers in the general direction.
source Table = new Data Table("New Table"); // If the structure of `Original Table` and `New Table` are the same, then do this: source.
Reset Bindings(false); // If the structure of `Original Table` and `New Table` are different, then do this: source.Microsoft is conducting an online survey to understand your opinion of the Msdn Web site.If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site. I also tried, in conjunction with your suggestion, setting bs.datasource = null rigth after dt.clear() but this doesn't seem to effect anything.More Information (update): I did find that the problem is tied to the dt.reset() function in some way.See how the above object is being used in the example tutorial.