I have a datagrid that I change the datasource for at runtime. It is always bound to a strongly typed collection. If I bind to a collection, then bind to another collection with a larger number of items I get an 'Error when committing changes to original data store'. I believe that somehow the...
I have a typed object which includes a second nested typed object. I want to show properties of the nested object on a data grid on a windows form.
Any suggestions?
So far, I have set up:
DataGridTableStyle tsl = new DataGridTableStyle();
tsl.MappingName = "ObjectA";
DataGridColumnStyle col1...
I have a web page that I want users to be able to open files from. The files will all be text files that contain SQL that I would then run against a database.
How do I get a new Open File Dialog window. In a windows application I would use System.Windows.Forms.OpenFileDialog. What is the...
I am sure this is a dumb question but how do you override this property?
I have a C# application that I am rolling out by creating a deployment project.
On the Installation Folder the default is to install for 'just me' and I need it default to 'everyone'. What property do I need to set (I've...
I have a simple C# application with just an exe. I have added a setup project creating my .msi file and than ran this to install the application. After making changes and then recompiling my setup project. If I try and run the new .msi file I get an error message saying "Another version...
I have a checkboxlist that when I am subsequently interorgating to check selected status is not keeping the status of the control.
I'm sure it must be something simple that I have forgotten to select but can't see it anywhere. I have made sure that enableviewstate is set to true.
Any help...
Hi,
I need to find the time difference between datetime fields. DateDiff only appears to give me the days.
The data I am checking will usually be only a couple of hours difference but could potentially be a more than 24 hours. Possibly to complicate matters the second date I am comparing...
I'm new to C# and have a fundamental question I'm sure you could all answer in your sleep.
I have a form and on clicking a button instantiate a new class and loop through a series of files. After each file I want to update a progress bar on my form to show how many files have been processed...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.