|
And I suppose you don't want multiple datagrids? Otherwise there wouldn't be any problem at all..
|
|
|
|
|
Hi,
what you could do is this:
- add a TabControl to your Form
- give it any number of TabPages you want
- put one DataGrid(View) on each TabPage
- create a different query for each TabPage
- make sure the queries don't get all launched at once, maybe just get one of them launched by the TabIndexChanged event (plus the initially visible one right away if necessary).
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
hi thanks, can u show me an example for writing queries into tabcontrols
|
|
|
|
|
Huh? A query (SQL, LINQ, whatever) does not care where it is located, it does not look different for a TabControl or TabPage.
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
Hi,
im binding my datagridview to a datasource (List)
im then hiding a column, but I need to check that the datasource has bound, how do I do this?
thanks
|
|
|
|
|
Debugging? I don't know what exactly you need. Check if the datasource for the gridview is not null.
|
|
|
|
|
ziwez0 wrote: I need to check that the datasource has bound, how do I do this?
Why not checking the DataSource member ..? If it's not null then it's bound to a data source.
Moim Hossain
R&D Project Manager
BlueCielo ECM Solutions BV
|
|
|
|
|
Is the column you are hiding the only column in the DataGridView?
If it is then, I for one, do not understand what it is that you are trying to do!
If it is not, then just run the app. If there's data there the binding worked, if not it might not have.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Ah right, I cant hide the column until the databound is complete, (otherwise it throws up wried results)
|
|
|
|
|
Hi,
I am new to c# and getting this:
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
...........................
.........................
any thoughts?
and also what about this?:
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.String.ConcatArray(String[] values, Int32 totalLength)
at System.String.Concat(String[] values)
...........
............
thanks.
|
|
|
|
|
you're out of memory. Do you use image files or videos, or other unmanaged resources ? you need to call Dispose to clean them up, or this will happen. The Garbage collection is actually useless.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
|
Hi,
Are these two separate problems? Please provide some more info.
You might want to show some code (not all of it, just what you deem relevant).
For the last part: how many elements are there in the string array? what is the expected total length after concatenation?
And do you really need the concatenated string? what is going to happen to it? there may be alternatives that are more economical.
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
yes separate.
what is the best method? I need to do it to send it somewhere...
|
|
|
|
|
Great. You wrote code that bombs and throw a couple of exceptions. Without seeing the code that generated those exceptions, it's pretty much impossible to tell you where you went wrong.
|
|
|
|
|
here is the invoke code:
<code>
private delegate void SetTextCallback(string text);
SetTextCallback d = new SetTextCallback(SetStatusText);
this.Invoke(d, new object[] { msg });
and for the text the concatenation of strings is with the "+".
|
|
|
|
|
Well that is next to useless.
Where is the code for SetStatusText ?
What is the value of msg ?
One of the Exceptions referred to concatenating strings, you don't think that possibly, just maybe, those strings and the code to concatenate them might be useful to anyone wishing to help you?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
questions, questions, and more questions.
All the poor chap wants is some simple answers; how difficult can it be.
Please finish your iced coffee and get him out of his misery.
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
Are you enjoying an iced coffee too?
I cannot give him any sort of answer, much though I'd like to.
I assume that you are composing your answers whilst I am writing this?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
No I am not a coffee man.
Me composing while you write? No. I'm actually spending quite some time at the Euler project[^] lately. Their questions are somewhat hard however they are very clear and complete, quite a change.
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
Luc Pattyn wrote: Their questions are somewhat hard however they are very clear and complete, quite a change.
They do make a change from these forums, don't they.
I do looked at the site from time to time, but quite honestly the questions are far beyond my abilities. Except for the odd one or two where I can see a brute force solution.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
qwerty53 wrote: any thoughts?
* Just because the exception is thown there doesn't mean the problem is there - but usually it is anyway.
* String concatenation is "dangerous" for memory usage, I would definitely check that to make sure you aren't somehow making a string of millions of characters long.
* I have a feeling that you're concatting strings in the delegate that you pass to Invoke but that's just a feeling..
Just thoughts, that's where you asked for anyway. But unless you answer some of the questions asked by other, you're not likely to get much more than thoughts and insults.
|
|
|
|
|
Hello,
I am trying to create a RangeColumn chart in Visual Studio 2008 with C#. All of my data is being brought in through a DB and is fairly simple.
I have two columns, a category and a value.
I want the first category to be displayed normally with y= 0 and then go to y= 200. Then I want the second category to start at y=200 then go to y=300, so basically it would not be starting at zero anymore. Ive heard this referred to as a waterfall chart, but not entirely sure.
I do not how to do this with just two columns of data. Do I need to create a query that does all of the math or is there a way do to this through the properties in MSChart?
Data
Category | | Total | Device | | 38111 | Plant | | 6063 | Improvement | | 2266 |
ex
DEVICES: x=0, y1= 0, y2= 38111
PLANT: x=1, y1= 38111, y2 = 44174
IMPROVEMENTS: x=2, y1= 44174, y2 = 46440
I have been making all of the charts entirely through the design mode of Visual Studio 2008, and have not played with the code at all.
I would be forever indebt to you if you could help out. Thanks!
JM
modified on Thursday, July 2, 2009 1:45 PM
|
|
|
|
|
i want to do one project in AForge.Net. my project is when a person infront of the web cam, it should capture the image and identify the eye part only. then when that person close his eye it should says a message eye closed. please help me as soon as possible.
thank u soo much
|
|
|
|
|
See points: 1, 2, 3, 4 and 9 in this post[^]
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|