|
Thanks for this tip.
I will work to implement this scenario. Meanwhile if you find any other way to accomplish it, please let me know.
Thanks in advance.
Regards
Nazar
|
|
|
|
|
Can anyone explain me.... regarding following problem. Though I got solution want to understand.
I made an applicatin in which 2 buttons are there.
1)Click on 1'st button is leading to 1'st gridview.
2)Click on link button of 1'st gridview is leading to 2'nd and,
3)Click on link button of 2'nd gridview is leading to 3'rd ....
likewise i was leading user to 3-4'th level detail.
Similarly on click of 2'nd button same procedure was getting followed.
I also have made BACK button to reach back to earlier stage from each grid view. i.e. From 3'rd gridview I was required to get to 2'nd griedview, and click on BACK again I was required to 1'st gridview and then again on buttons page on click of BACK once again.
This was happening fine with first button while it was not returning back from second buttons grid view. Even my Internet Explorer's, 'BACK' button also was geting disabled..! showing that there is no previous page...!
I searched much but could not find detail, but then got doubt on 'ViewState' which I used to filter data based on click comming from earlier grid. To solve my problem, instead of using 'ViewState' I used 'Session' and it worked. I am now able to come back to 2'nd button from which I started. That to step-by-step.
Thus problem is solved but wabt to know how this 'Session' worked then 'ViewState'
i.e :
ViewState["ds_Port_Summ"] = ds_Port_Summ; is replaced by,
Session["ds_Port_Summ"] = ds_Port_Summ;
and it worked.
Please explain, how/why it worked fine to go back to previous stage..?
|
|
|
|
|
Hi Mit24,
This is C# Forum. Please post your question in ASP.NET Forum.
|
|
|
|
|
Hello,
I have a Datatable in my project and i am send sql string.
later he is fill my datatable.
How i know if they put in ther a data?
I try to ask:
if (dt != null)
OR
if (dt.Rows[0] != null)
Thank you.
|
|
|
|
|
if(dt.Rows.Count == 0)
...
|
|
|
|
|
I have a split container on the form. On the left panel and right panel I have tree views. I have set the tree view scroll bars to false. When the treeviews increase in size, tthe panels doesn't show any scroll bar even though autoscroll property of the panels are set to true. How can I show the scroll bars of the panel? I need to synchronise both the scroll bars later.
Regards
Surya
|
|
|
|
|
Surya Ayyagari wrote: I have set the tree view scroll bars to false.
What do you mean by that? Do you mean the 'Scrollable' Property?
Surya Ayyagari wrote: tthe panels doesn't show any scroll bar even though autoscroll property of the panels are set to true.
That because you tree view is not changing size so no need for scrolls,the scroll bars should be in the tree view.
All you need to do is have the TreeView Scrollable property set to true (which is the default) and the scrolls bars will appear when they need to. If they don't then you must be doing something else to prevent them.
Surya Ayyagari wrote: I need to synchronise both the scroll bars later.
Why do they need to be synchronised?
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
musefan wrote: Why do they need to be synchronised?
It doesn't matter why. If he needs to, he needs to.
"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." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: It doesn't matter why. If he needs to, he needs to.
It does matter as to the answer I may choose to give him.
If he says that he just has two identically tree views then I would suggest that it would be best, from a users point of view, to just have one. If he says something like they are used to compare data then I would point out that problems will occur with different numbers of nodes (for example, you cant scroll to the 100th node on a TreeView that only has 50 nodes etc.)
As I am sure you are aware, there are a lot of people new to the subject of programming (not to suggest the OP is new) that use these forums. Sometimes it can be more helpful to question a persons design choices in order to illustrate better solutions for the future.
if somebody gave the example like follows with the question how do I make i3 be the sum of i2 and s1, I need to convert s1 to a number to add to i1...
int i1 = 2;
int i2 = 3;
string s1 = "" + i1;
Console.Write("i1 = " + s1);
int i3 = i1 + s1;
Would you suggest...
int i3 = i1 + int.Parse(s1);
..or would you point out how they could do it more efficiently?
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Have you set the Dock property of the treeView to DockStyle.Fill ?
|
|
|
|
|
I have set the DockStyle as DockStyle.Fill. But still I am unable to see the scroll bars even though the tree view is completly loaded. I can select the nodes which are not visible, but the scroll bars of the panels doesn't appear
Regards
Surya
|
|
|
|
|
Please don't post in two forums! Very rude, have a little patience.
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.”
|
|
|
|
|
Sorry Henry. I thought I posted at the wrong place so I posted again. Still no solution for this...
Regards
Surya
|
|
|
|
|
I ran into the same thing but couldn't find any suitable answer, at last figured it out on my own. Adding it here, it might help somebody else.
Scroll bars appear when child's size increases or it goes out of the bounds of parent. But when you set the Dock Property of child (in this case TreeView) to Fill, the splitter, when resized, changes the size of its child as well. hence no scroll bar will appear.
If you must set the Dock property then use AutoScrollMinSize property of parent.
|
|
|
|
|
Hi
Thank you. it really helped me. I was stucked in situation which you have faced and i found this reply. thanks again
|
|
|
|
|
I have a data in DataSet
i want to tranfer it to sql table using c#.net 2003
plz help me
|
|
|
|
|
|
Please help. I installed Component Software- RCS and added my projects and websites to it.
And bam every file has become a dump now. It is showing chinese characters in Visual Studio. It throws a message "the line endings in following file are inconsistent" and no matter what I chose it always shows corrupt files.
I had my complete project ready to be sent. This is my 1 years hard work. I dont know what has happened to me when I used this useless software
Amit Kumar Thakur.
|
|
|
|
|
You should raise this with Component Software[^] themselves. As the authors, they are much better placed to help you than we are.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
|
|
Well good luck with it then
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
I find it amazing that you installed an UNTESTED application in your environment just before you roll out your app. Why didn't you backup your projects PRIOR to installing this major changing to your development environment?? This is why you always TEST applications like this in a seperate environment from your production development system so you can find out about these little problems BEFORE inflicting this kind of damage.
I would say that if you didn't backup your stuff before making this change, you've got a LOT of work to do to clean up each and every file in each and every project you have that has been affected by this issue. Have fun...
Your only hope is to contact Component Software for help. Noone here is going to have the experience to get your code back to where it was.
|
|
|
|
|
Thanks for the reply. The help in CS-RCS is itself dipsy. I dont think there is a any other workaround, I tried almost everything. It has messed up everything. I still have a 1 month prior backup. But this is a real hard lesson. I hate Component Software for this.
Amit Kumar Thakur.
|
|
|
|
|
Yeah, but I think you're missing the point of the lesson. The lesson was the responsiblity of testing this software before putting it into production was on you. I hope you don't release your own software to your clients with the same level of testing...
|
|
|
|