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...
Well if that's after one coffee I think I should be worried that I am on my tenth (GMT), fully awake and still only just on the safe side of clueless!!
Reading the stream of data worked a treat - thanks very much again for your help!!!
Anyone reading this in the future I had to make one very...
Thanks again.
All seems to work now one way or another. What I'm actually trying to do is read a .txt or .sql file from the users PC into my application which will then display the sql in a textbox and the user then runs the sql from there.
I've got it working doing the following steps but...
Thanks, another question:
How can I limit the file types that are displayed and limit the directory paths available?
Also, how should I then work with the selected file? It's not "runat="server"" so I can't use the C# code behind.
I'm new to this so sorry if these all seem like dumb questions!
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 have created an msi. This was created in VS 2003 via a set up and deployment project.
Where do I set the ALLUSERS property? I've read up that I need to set the value of this property to 1 or 2 but can't find any info detailing where I change this.
Is there something I can set within the...
You might like to check this article out that provides information on deploying .net application running on a network server.
http://support.microsoft.com/default.aspx?scid=kb;en-us;832742
It may or may not be any use for you and won't resolve the Crystal Reports issue. The Crystal Decisions...
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...
You can use the System.DateTime classes:
To get from date to a double representing the date:
double dateNumeric;
System.DateTime dateIn = new DateTime(2003,10,3);
dateNumeric = dateIn.ToOADate();
// this obviously gets you the double representing the
// current date. You'll need to change this...
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...
You could try:
string filePath = System.AppDomain.CurrentDomain.BaseDirectory +
"email_files\email.txt"; //you may need to change the part in quotes depending on where you run your app from - ie: "secure\email_files\email.txt"
FileStream fs = new FileStream(filePath...
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.