|
Without the RefreshDataBoundControls() , the new item is not added to the LB.Items therefore it cannot be selected and the last line (of your snippet) throws an ArgumentOutOfRangeException
Agree about the Update() part. I didn't have that originally, added in an attempt to 'force' a redraw to get rid of the persistent highlight(s), and forgot to remove it.
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.”
|
|
|
|
|
My mistake. The new line is added to data, not to the ListBox.
|
|
|
|
|
OriginalGriff wrote: What are you doing that is so different?
See my reply to Luc below.
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.”
|
|
|
|
|
i am having a like this
Name -Nikhil Bhivgade
Class-6th
-------------------------------------
1 English 100 50 Pass
2 Maths 100 50 Pass
3 Science 100 20 Fail
4 History 100 20 Fail
--------------------------------------
in report footer i want to display failed subject Sr.No and Name
you Failed in 3.Science,4.History
|
|
|
|
|
Use a global variable. Global variable is visible for all the sections of the report. String Append Sr.No and Name of the subject based the status pass or fail.
The formula can be:
FormulaA : [Used in the PageHeader][Display of Formula Suppressed]
Global stringvar FailedDetails;
FailedDetails = "";
FormulaB: [Used in Detail Section][Display of Formula Suppressed]
Global stringvar FailedDetails;
WhileReadingRecords;
if (status = "fail")
FailedDetails = FailedDetails + SrNo + " " + Subject
FormulaC: [Used in Footer Section] [Display of Formula Not Sppressed]
Global stringvar FailedDetails;
FailedDetails;
For more information: Search in google with the keyword - "WhileReadingRecords" and "WhilePrintingRecords"
The above formula do not work by copy paste. You need to make some adjustment based on the Syntax.
Hope it Helps
|
|
|
|
|
It is returning me false
any suggestion
|
|
|
|
|
Hi All,
3 months ago i developed a WPF Application offline,and now i need to host this Application online.
This app gets the function to Add,Edit,Delete,Search (and so on ...) records in the database so it use a Databinding and now i need to host it online so the client can connect on the web to insert or update the data .
Can you suggest me which way is the best to host my App online using the Databinding?
Thanks so much for your attention.
..if you need more details don't hesitate to ask me .
Cheers
|
|
|
|
|
You should take a look at Silverlight[^].
You will obviously have to re-write some of your code, but if you app is already designed as a client/sever app you may find you are able to keep large parts of it. Silverlight at least uses a variant of XAML, so you may be able to reuse some of your GUI code.
You could also consider an XMAL Browser application[^], but you will find your platforms are more restricted to IE & Firefox only and Windows only.
Simon
|
|
|
|
|
WPF apps don't run in a browser. However, Silverlight is a subset of WPF, and most of your stuff should workk with little/no change with the possible exception of database access. Silverlight REQUIRES the use of a web service to access a database, even if the database in question is on the same server as the web server.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
You could use Silverlight like the other two answers told you, or you could use Click-Once deployment to deploy your WPF app.
|
|
|
|
|
Nishant Sivakumar wrote: Click-Once deployment to
He's talking about deploying on a web server - not about deployment in general.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
Abhinav S wrote: He's talking about deploying on a web server - not about deployment in general.
Click-Once apps are typically deployed on a web-server and accessed via an Http URL.
|
|
|
|
|
You can actually have a look at WPF XBAP applications[^].
XBAP files can be deployed on a web server and run in a web browser.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
Well,
firstly thanks so much for your good answers,
my app is very big there are also many Roles ,i like develop it with Silverlight but i am afraid i need time to do that as i have not a good experience,so i am researching also on the web to convert"WPF to Silverlight" .
I am looking also WPF XBAP applications[^] because it is would be simple and faster but a doubt born is my self if it can support all the features of my App.
Thanks so much for your support.
Have a good time.
Cheers
|
|
|
|
|
I have to Find Gridview Footer Row in Javascript. Is there any chance to show/hide footer row in javascript.
How to Find Label in Footer Row.
|
|
|
|
|
|
Sorry mate - wrong forum.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
Hi to all,
I have a page where I can add comments.
But after adding the comment,some data in the page goes missing.
Only if we refresh manually,we can see the data properly.
Does anyone have any suggestion for this?
The query is returning properly.
Regards,
Juman
|
|
|
|
|
Try this link
Don't forget to rate answer, that helped you. It will allow other people find their answers faster.
|
|
|
|
|
Sorry,I din't understand what you meant by that?
|
|
|
|
|
I mean this is ASP.NET question. Not C#.
Don't forget to rate answer, that helped you. It will allow other people find their answers faster.
|
|
|
|
|
May be!
I am using C#.So I posted here.
Thanks
|
|
|
|
|
juman_achu wrote: May be!
I am using C#.So I posted here.
juman_achu wrote:
I have a page where I can add comments.
But after adding the comment,some data in the page goes missing.
Only if we refresh manually,we can see the data properly.
Does anyone have any suggestion for this?
The query is returning properly.
No mate, it's web application so you should post this in ASP.NET forum.
|
|
|
|
|
Does delegate creates another thread internally ? or it blocks the further execution until the event is processed fully.
I have to handle few functions parallel so I don't know I should go with threading or (events + delegates)
|
|
|
|
|
You can go with threading for parallel execution. Create a backgroud thread for your functions that run in parallel and does not need any user interactions.
Delegate and events both are kind of "Call the piece of code that I supply when something happened". So it states that your piece code will not guaranteed to run in parallel. But, it will run when delegate in invokes and event is fired.
modified on Friday, October 22, 2010 3:07 AM
|
|
|
|