|
I am hacking together a program to manage the scheduling for software-development projects. I got a great method to manage the work breakdown structure, but the datagridview won't show me an expandable tree structure when I got a table with a recursive structure.
Anyone have any clue what happend to the expandable structure that used to be available in the datagrid from .NET 1.1??
WM.
What about weapons of mass-construction?
|
|
|
|
|
Differences Between the Windows Forms DataGridView and DataGrid Controls [^]
"... The only feature that is available in the DataGrid control that is not available in the DataGridView control is the hierarchical display of information from two related tables in a single control. You must use two DataGridView controls to display information from two tables that are in a master/detail relationship."
The DataGrid is still available to use if you really need this, but then you lose all the handy new features of DataGridView .
Charlie
if(!curlies){ return; }
|
|
|
|
|
Ok, I think I'm going to use the DataGridView. The users can also see by the tasknumber how deep the task is nested. (The tasknumbers have a format that looks like this: 1, 1.1, 1.1.1)
WM.
What about weapons of mass-construction?
|
|
|
|
|
hi friends
i need your help (to write a program in C#)
i want to go this site :
http://today.reuters.com/stocks/Overview.aspx?ticker=msft
and to save the information about the stock (for example Last Trade: $27.76,
Trade Time: 1:00 PM ET ,Change: -0.57% ,Prev Close: $27.92 ,Open: $27.80 ...)
lets say i want to save it in access or sql server
thank you
Eyal
eyalso
|
|
|
|
|
Hi.
I put some label controls with text on a form and then I drew some lines on the form. Only part of the labels can be seen on the screen and to see some of lowest ones the user needs to scroll down. The lines outside of the visible clientarea don´t get drawn and when I scroll back up again the lines that were visible at the upper most part of the form are no longer visible! Why is that? I did try to use this.ResizeRedraw = true; and then this.CausesValidation = true; but it doesn´t fix the problem. I would like all of the lines I draw to be visible when the user scrolls up or down. Can someone please help me?
Thanks,
FJ
|
|
|
|
|
You should create an Image and all graphics save to it. For example:
Graphics grafika;
Bitmap obr = New Bitmap(this.Width, this.Height);
grafika = Graphics.FromImage(obr);
e.Graphics.DrawImage(obr, 0, 0);
Zło to zło. Mniejsze, większe, średnie, wszystko jedno, proporcje są umowne, a granice zatarte.
|
|
|
|
|
Dear All,
I have a DataSet which has a relation, table A is parent table B. I want to show only data of A on Datagrid. But in front of each row of datagrid, have "+" mark. I want to hide the "+" for each row ( don't clear Relation in this Dataset).
Please help me solve this problem.
Thanks alot.
inew
|
|
|
|
|
I haven't tried this just now, but have you tried dataGrid.DataSource = dataSet.Tables["tableA"]; assuming that your table is called tableA?
HTH.
Cheers,
Vikram. "When I read in books about a "base class", I figured this was the class that was at the bottom of the inheritence tree. It's the "base", right? Like the base of a pyramid." - Marc Clifton.
|
|
|
|
|
why i can't install ms sql server en version on italian xp ???
|
|
|
|
|
Hi
Where i cand download some free version of ms-sql server cloud you give me exacly url becaus i know is exsist some free version but i don't find it???
|
|
|
|
|
You're probably looking for SQL Server 2005 Express edition. It's available from the MSDN website http://msdn.microsoft.com/[^]
WM.
What about weapons of mass-construction?
|
|
|
|
|
how to create excel sheet using c# withoue excel objects
.
can anyone help...
thanking in advance..
byeeeeeee
sree
|
|
|
|
|
Can you be more specific?
If you just want to be able to view the output of your program in Excel, you can create a CSV file.
Cheers,
Vikram.
http://www.geocities.com/vpunathambekar
Google talk: binarybandit After all is said and done, much is said and little is done.
|
|
|
|
|
Hi Sree,
ComponentOne has a component, C1XLS for .NET, that will allow you to create Excel spreadsheets. Excel does not need to be present on the development or end user's systems to create the xls file. The evaluation version includes samples and documentation that will show you how to get started. Versions of the component exist for both the 1.x and 2.0 .NET Frameworks. For more information, please refer to the following link: XLS for .NET Information[^]
Suelinda W
Customer Engagement, ComponentOne LLC
|
|
|
|
|
How can I create a windows service in such a way that it allows me to install multiple instances with same name (may be someting like versioning) on a single machine???
Any help to accomplish this task will be greatly appriciated.
I would love to change the world, but they won't give me the source code.
|
|
|
|
|
You can't create multiple instances of a service with the same service name. This is because a registry key is created using the service name. The only way around this is to use a different service name for each instance (i.e. Service.1, Service.2, Service.3, etc.)
|
|
|
|
|
I want to retrive all the files in a directory of certian types (.bmp, .jpg, .gif) etc etc. But I seem to only be able to pass in a single filer to the functiond
filesInDirectory = Directory.GetFiles(PictureDirectory, "*.jpg");
Works fine but:
filesInDirectory = Directory.GetFiles(PictureDirectory, "*.jpg;*.bmp");
Does not work correctly at all, Is there any way to do this, without calling multiple times and joining arrays?
Also it seems to just return them in alphabetical order, is there anyway to return them in the way they are sorted/being viewed in Explorer?
Thanks!
|
|
|
|
|
I googled a bit and tried using ; and | as separators, but they don't work. In fact, using | as a filter separator throws an exception. I suppose the best bet is to call the method multiple times and club the results together.
Kluch wrote:
Also it seems to just return them in alphabetical order, is there anyway to return them in the way they are sorted/being viewed in Explorer?
Are you saying that if the contents of folder Foo appear sorted by name in Explorer, your app should offer them sorted by name; and if the contents of folder Foo appear sorted by date created in Explorer, your app should offer them sorted by date created? AFAIK, there's no way to do this.
Cheers,
Vikram.
http://www.geocities.com/vpunathambekar
Google talk: binarybandit After all is said and done, much is said and little is done.
|
|
|
|
|
ive got a problem, and i dont understand why it happens. when a function is called, it is suppoed to open a new form:
namespace.cmdfeedback feedbackform = new namespace.cmdfeedback();
feedbackform.OtherForm = this;
feedbackform.ShowDialog(); but the form isnt displayed. however, if i add a messagebox.show(""); to the new form, the form gets displayed (as well as the messagebox). how can i get the form to display without the messagebox? i have no clue wat is causing this. here is the code for the form that should be shown.
public cmdfeedback()
{
InitializeComponent();
}
private void cmdfeedback_Load(object sender, EventArgs e)
{
timer1.Enabled = false;
this.Show();
OtherForm.statusbox.AppendText(Environment.NewLine + "Data recieved from client.");
try
{
richTextBox1.Text = "something";
}
catch (someexception)
{
richTextBox1.Text = "Error recieving data.";
}
}
-- modified at 19:57 Friday 25th November, 2005
|
|
|
|
|
This is a shot in the dark, but can you try feedbackform.Focus() ?
Cheers,
Vikram. "When I read in books about a "base class", I figured this was the class that was at the bottom of the inheritence tree. It's the "base", right? Like the base of a pyramid." - Marc Clifton.
|
|
|
|
|
Well, this happens because the form, normally, won't show itself until the Load event is completed.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have a program that has a form1.cs which calls and starts each thread in the workerthreaded.cs file. While the program is running it fully freezes until it stops. How can you make this so it always runs and the interface can still be used while the code is still running?
|
|
|
|
|
the code is:
<br />
Application.DoEvents();<br />
You can write it before the thread starts...
I hope it helps
Enrico
|
|
|
|
|
|
I have opened a Word Document and done a compare to another document, setting WdCompareTarget to New. Where I am stuck is saving the new document without user interaction.
Here is the code that compares the documents:
WordDoc1.Activate();
WordDoc1.TrackRevisions = true;
WordDoc1.ShowRevisions = true;
WordDoc1.PrintRevisions = true;
object CompareTarget = Word.WdCompareTarget.wdCompareTargetNew;
WordDoc1.Compare(
secondfile,
ref missing,
ref CompareTarget,
ref missing,
ref missing,
ref missing,
ref missing,
ref missing
);
If I do:
object SaveChanges = true;
WordApp.Documents.Close(
ref SaveChanges,
ref missing,
ref missing
);
then the Word Close box comes up and I can specify a name, but I'd like to save to a file specified in a variable. How do I get a reference to the new document?
Thanks ...
|
|
|
|