|
Depends on what exactly you want.
If you want an easy and straight way and your data isnt too big (lets say less then 100000 rows) then you can just pack your whole data into a DataTable and display it in the grid. This way you will have sorting and filtering capabilities right from the start. That the data isnt bound to any database isnt relevant.
For some extended filter functionality in DataGrid have a look at this article.
|
|
|
|
|
Hi,
I've wrote a .Net Remoting client-server application. I'm using a config file to connect the components and use the Ingo Rammer RemotingHelper class
http://www.thinktecture.com/Resources/RemotingFAQ/USEINTERFACESWITHCONFIGFILES.html[^]" rel="nofollow">
The problem is : I can't disconnect client from server (only when I exit the exe).
I disconnect client from server using
RemotingServices.Disconnect(ObjetMarshal);
but I have an error : "Cannot call disconnect on a proxy"
Thanks !
|
|
|
|
|
Hi Soke,
You can call the RemotingServices.Disconnect method on remoting proxies.
Guess the following link will help you.
http://blogs.msdn.com/manishg/
Thanks and Regards
SGS
|
|
|
|
|
Thanks for your answer !
But there is something I don't understand. In fact Disconnect method doesn't really disconnect client Ok for that but how than disconnect ?
I don't find the answer on the mentionned blog :s
In fact, I would like to unregister the channel on which i was connected (to have all my ressources free)
Thanks !
Sok
ps: i'm working with framework 1.1
|
|
|
|
|
Hi Sok,
The blog which i mentioned talk about RemotingServices.Disconnect method.
To unregister a channel you can use ChannelServices.UnregisterChannel method.
ChannelServices.UnregisterChannel(channelobj);
Thanks and Regards
SGS
|
|
|
|
|
Yes of course there is the ChannelServices.UnregisterChannel method
But my problem is than i connect my clients with config file and activator.getObject.. Then I can't find the way to unregister the channel
|
|
|
|
|
hi all,
I have done a C# Applcation with TextBoxes,Labels and DataGrid.Default Window State of the Form is "Normal".
Now I want to resise Controls in the Window Form when maximising the Dialog..
How can I do it?if any one knows it ,please reply me..
thanks in advance..
|
|
|
|
|
you can use the Anchor propriety of the controls to a certain degree. For example if you have a control Anchored to a margine, whenever that margine is moved the control will always keep the same distance from that margine. if the control is Anchored to two oposed Margines(left and right for example), when the parent control is resized, the control will increase his size acordingly so as to keep the same distances from the margins(in the left right case he will increase his width). Anchors work in desing mode too .. you should try and experimet with them there.
if you want more control you can handle the SizeChanged event of the parent control (this beeing in your case the main form).
|
|
|
|
|
Thanks for reply..
This Method is work successfully if one control in the Windows Form.
How is this implement to WindowForm exist with many Controls..?
|
|
|
|
|
|
hi
if we add many controls to the Application,and do Anchor for all controls,after that maximising several times, some controls are going to invisible.
that's the problem.
|
|
|
|
|
Sounds very strange. Never heard of that one. But I've experienced similar problems in other situations (I have a button on a tabpage that tends to disappear when I disable/enable it).
Do they appear again when you manually call Invalidate() on the form after maximising? Maybe that could be a workaround.
Claudio
Claudio's Website
Hommingberger Gepardenforelle
|
|
|
|
|
If you are using teh visual studio IDE it's simple by only holdig Control key while clicking the con trols you want to set it's auncher property,and then set the directions you want this control to be auncher to.
|
|
|
|
|
How to detrmine mouse is over which control,lets suppose if i have treeview listveiw and some Active X control,then how to determine mouse is over which control so that we can perform soem action,while keep this thing in mind that Activve X control like axWebBrowser Control do not have events like mousemove mouseEnter etc.Guide me.
Umair
|
|
|
|
|
Probably not a very good way to do it, but you could keep checking for the mouse's position on the form by implementing a timer. If the location of the mouse cursor is within the control's boundaries then you know the mouse is over that control.
Hope this helps
Regards,
Polis
Can you practice what you teach?
|
|
|
|
|
Is it possible to create it and use in my application
Sorry, for bad English
Thank You.
|
|
|
|
|
|
G'day Folks,
I was just wondering if it is possible somehow to determine if an application is in focus or not. For example, an instance of ms excel is running, it is in focus, if its window is active. Reason for this is that I have managed to write a small c# application which can determine if an instance of ms excel is running, ie. it can be the active application or be minimized to the taskbar.
Therefore I was wondering if anyone can shed some ideas as how to I can determine if the desired application is in focus or not.
thanks
Vee
|
|
|
|
|
The System.Diagnostics namespace has some good classes to help you knwo if some process is alive or not.
|
|
|
|
|
thanks for the tip.. I will look into this and maybe post back a solution if i can.
|
|
|
|
|
When there is a statement in a windows form application which is executing in an infinite loop, the name of the form will show "Not Responding". How does .NET determine if the application is in an unstable state? I wonder if WMI is the right way to track the application? If so, what is the right way to start? If not, is there a way to determine the unstable state of an application?
Welcome any advice
|
|
|
|
|
When your app is in an infinite loop, then usually no windows messages are processed and thus your app is not responding.
So "Not responding" is just another word for "Not processing messages".
You can make your app responsive either by putting the loop code in a separate thread or by calling Application.DoEvents() inside the loop.
Regards,
mav
|
|
|
|
|
I think a separate thread will be more accurate since you may want to make another loop or any ting else.
|
|
|
|
|
Is there any method for mouse over event in this control,or how can i capture the mouse position on this control,or how can i display a Message/alert anything when mouse is over the Control.
I Hope u ppl understand my english
|
|
|
|
|
hi group,
I have a winform application. One of my winform contain a panel with few child controls. I would like to impliment zooming (like 50 % , 100 % etc) facility for all child controls which are avilable inside that panel.
The main reason is, i have a collection of controls inside that perticular panel. Sometime user want to see some or all controll at a streach without scrolling panel up and down.
How will do this ? Please post your idea.
Sreejith Nair
[ My Articles ]
|
|
|
|