|
Hi all,
I need a datagridview cell of containing multiple datagridview cell.If it is possible then pls tell the way of code.
|
|
|
|
|
If I understand your question correctly, you want what is known as heirarchical data grids.
In maybe version 1.0 this was supported. But in the 2.0 framework on it does not.
The only way to get that working is to either a) write your own heirarchical datagridview or b) buy one.
|
|
|
|
|
I'm dynamically populating a tree as the user selects nodes. Prior to clicking on a node, parent nodes actually have no children and after click, they get populated. This results in expandable nodes not having the "plus" sign next to it until after you click on it. Anyone got any ideas on smart ways to make every node have a plus sign, whether it has a child or not?
Thanks,
Jeff
|
|
|
|
|
jeffb42 wrote: Anyone got any ideas on smart ways to make every node have a plus sign, whether it has a child or not?
Ownerdraw
|
|
|
|
|
Easy. Give every node a "dummy" child. When a node is expanded, you check the children of the node for the "dummy" child node. If it's there, remove it and populate the children as you see fit.
|
|
|
|
|
Thanks Dave, I was hoping there was a bit easier way, but this sounds reasonable.
Thanks,
Jeff
|
|
|
|
|
jeffb42 wrote: I was hoping there was a bit easier way, but this sounds reasonable.
Not that I've found. That's about as easy as it gets.
|
|
|
|
|
i tried the following windows service application to send the email alerts automatically..
mean on a specific date and time.
but when i am running this i am getting the msg:"The goodday service on local computer started and then stopped .Some services stop automatically if they have no work to do, for example, the performance logs and Alerts service"
how to rectify it??
this s the application:http://www.codeproject.com/KB/cs/WIndows_Service.aspx[^]
modified on Wednesday, January 02, 2008 11:17:19 AM
|
|
|
|
|
You put all of your code in the OnStart event of the service. OnStart is used to start a seperate thread where your service does all it's work. OnStart is expected to start this processing thread and return control back to the Service Control Manager inside of 30 seconds.
Your code does all of it's processing, and I'm suspecting does a Thread.Sleep in there somewhere, in the OnStart method, never returning control back to the Service Control Manager.
|
|
|
|
|
Hi all,
I have 2 forms in my application say form1.cs, form2.cs
in form1.cs form load event iam writing the following code
form2 obj;
for(int i=0;i<n;i++)>
{
obj = new form2();
obj.show();
}
each instance of form2 does some operation and closed automatically.this code working fine.
now what my problem is
in some control (say textbox or label) on form1, i want to show how many instances of form2 are running. this value should modify when form2 instantiated/closed.
how can i proceed.
thanks in advance.
this is sumanth, completed m.c.a from india.
|
|
|
|
|
what u need is the no of instances right ....to do this take a static variable in the form1 say static int count; now in the form2.load event increament the variable as form1.count++;
after the obj.show; line assign the label value as form1.count; hope it works
if this thing also dint work then take a thread or timer to which executes a function and in that function assign the value to the label or textbox
regards
sindhu tiwari
its me sid
|
|
|
|
|
Application.OpenForms.Count
Application.OpenForms["Form1"]
I think this should help you out.
|
|
|
|
|
Hi,
if you want to know how many instances of a specific class exist, you should add some
code to that class, including: a static int counter, a property to get its value,
and one or two events to increment and decrement the counter. For form visibility,
the event would be Form.VisibleChanged
|
|
|
|
|
Hello everybody,
Can anyone tell me please what can I do to achieve Accordion's behavior in Windows form as most as possible
thanking you in advance
Rachamim
|
|
|
|
|
What do you mean by "Accordian's behavior"??
|
|
|
|
|
hello all, i need to make a package of a program that uses the MSDE as its database server, but i do not know how to pack the database into the package and attach it to the MSDE. also, how to pack the MSDE itself in the package
thanks
|
|
|
|
|
|
Hi all
I Wount to add Footer to DataGridView In C#.Net Windows Application
But In Windows Application The DataDridView Dont Have Footer To Add it
I wount to How i can add footer to DataGridView or A new Free Grid Control Have Footer
Thanks For Any Body Help Me
Thaer
|
|
|
|
|
Hi, I've written a total ownerdraw ListView, but I'm not able to "hot track" the mouse on headers ... There are events for painting the headers, mouse click, ...; but I've not found anything usable for mouse tracking ...
any ideas?
Thanks in advance /// Angel
|
|
|
|
|
Hey,
I need to browse a multiselection ListBox, especially getting the Values of selected items.
I filled it like this :
lbox.DataSource = 'some datatable';
lbox.DisplayMember = "Col1";
lbox.ValueMember = "Col2";
The SelectionMode chose is : MultiSimple
I need something like this
foreach (item in the selected items)
{
Display its value.. etc
}
Thank you.
|
|
|
|
|
a ListBox has a lot of useful properties, some related to the current selection;
I would not be surprised if the documentation would show some with names starting with
Selected. Would you care to read up on them?
|
|
|
|
|
Hey,
Of course I've done many research before asking here..
The problem i have is not with getting the collection of selectediems (lbox.SelectedItems and lbox.SelectedIndices..etc) but when trying to retrieve the Value associated to a selecteditem..
Thanks.. for not helping..
|
|
|
|
|
if the ListBox.DataSource is a DataTable, isn't each item in the ListBox a DataRow?
|
|
|
|
|
|
Hy there,I hava a problem..I created a control that has a public Brush property that the developer chooses from the property window. But If i change it..it doesn't get serialized to InitializeComponent() so at runtime it still has the default value
I created a UIEditor for this property and a BrushConverter : TypeConverter to let the design-time know how to convert from a InstanceDescriptor to a Brush.
Why doesn't this work? I debugged the design-time and when I change the property..the breakpoint in the method ConvertTo from the type converter doesn't hit
Thank you in advance.
|
|
|
|