Rakesh Rajan wrote: Is there a limit to the number of rows (amount of data) a datagrid can display in a datagrid?
See Process.MaxWorkingSet. This gets or sets the maximum amount of memory allowed in memory for the given Process.
Rakesh Rajan wrote: Is there any internal optimization in the datagrid which fetches data from the dataset only for those rows which are visible to the user?
Not yet, at least in the .NET base class library. In .NET 2.0 they have introduced several new control classes, including a GridView[^] which supports virtual lists, which is to what you're referring.
There's nothing from stopping you now (there was a good article a LONG time ago about how to do this even in DHTML), but the burden is on you unless you want to buy a commercial solution like a couple from ComponentOne[^].
Is there a way to render html without using the SHDocVw control? The reason that I don't want to use that control is because I don't want the overhead of the control having internet access. I also want the control to be able to render dynamic html while the SHDocVw control seems to only render static web pages. I would really appreciate some advice or even just a point in the right direction. Thanks
I'm writing a tool that does some dianostics on processes. I can't seem to figure out how to locate the name of the user running a process or the id of the parent process. Can someone please point me in the correct direction. Thanks
One way ( without digging into the debugging APIs ) is to P/Invoke the native functions in the following order: OpenProcessToken, GetTokenInformation, then LookupAccountName. You pass Process.Handle to OpenProcessToken to get an access token. You then get a TOKEN_USER struct by calling GetTokenInformation. Finally, use the SID parameter from TOKEN_USER and call LookupAccountName. This also seems to be partly what taskmgr.exe and tasklist.exe (in Windows XP) are doing. There is actually only tree functions you have to P/Invoke and only a couple structs you have to redefine.
I'm sorry that I couldn't find a way to get the parent process ID. In fact, I couldn't find anything common that does on Windows, not to say it isn't possible.
To be exact, functions are stand-alone procedures while methods are procedures that belong to an entity (class, struct, etc.). It's not just a .NET term but a procedural vs. object-oriented naming convention.
I've done some searching but can't seem to find what I'm looking for. I have a solution with roughly 30 projects (all C#) in it. Fairly often, perhaps every 5th or 10th debug build, I get errors in 1 to 3 of the projects that say that the /debug/obj/<projectname>.pdb file is in use and the build couldn't complete. I cannot delete the file without shutting down VS, but once I do and restart, the projects build fine. In using VS.NET 2003 on W2K. Is there something causing this in what I'm doing? Is it an IDE bug? How can I fix it or efficiently circumvent it? I realize that this may not neatly fit into the C# newsgroup topic, but it seemed the best match. Any help would be greatly appreciated. Thanks!
More info. This happens with code behind a Windows Form. When this problem arises, close all of the Windows Forms documents in the IDE and the file is released by whatever is holding it. Seems like a bug...
Thanks for the reply, but I don't have FXCop and the above seems to negate 'a'. I'm puzzled.
One of the Best Software Consulting Company in New Jersey looking for IT Professionals to join the company on H1B and sponsor Green card immediately with labor is 3-4 months timeframe, and we have Offices in different locations.
We offer Best Billing rates to the consultants, if you have project in your hand you will get maximum portion of the Billing Rate completely negotiable. You will get Bonus when you refer a friend or associate to the company.
No Rejection/Query in the entire company history for H1/Greencard sponsorship.
We are direct vendors to IBM, Pearson Education, and Verizon etc.
We are also looking for consultants who have skilled in Data Warehousing, .NET & J2EE Technologies, SAP and Oracle Apps etc. We are ready to sponsor H1s and Green Cards.
I am working on a Windows application in C#. I have to develop a component which can display the text in multiple languages like Sapnish,Russian,French. I just started looking into it and one way I found is using the resource file somehow. But I create my component runtime by reading a XML, and all the contents are shown in grid. So I think I cant use the resource file way.
Another way is by using the unicode, but I couldnt figure out how to use it. Any help will be highly appreciated.
You don't reall use Unicode, per se. Strings are either ASCII or Unicode. In .NET and Java, all strings are natively Unicode. You really only have to worry about this when marshaling strings to native calls or with stream encodings.
If you're creating your component at runtime using an XML file, when you read the values of properties use the TypeDescriptor to get the PropertyDescriptor or use reflection to see if the property is attributed with the LocalizableAttribute and the value is true. If so, use an instance of a ResourceManager that specifies a Type (this doesn't have to be the Type of the component you're essentially deserializing) and use GetObject to read the information from the resources file.
I know this is probably really stupid, but I am looking for a way to reference a control from a class. If I change the control from 'private' to 'public static', I have no problem using the control. Except that I have to change all the reference from this.myControl to myForm.myControl.
When I switch back and forth between code and design view, the IDE will remove all of my changes.
Can anyone lend a quick helping hand. Thanx In Advance
If this is an instance of a control, you shouldn't access it from a static. Just have an public instance property that returns the control from the instance of that class. It would be much better, though, if you only expose what you need from that class. This is known as data-hiding - you don't want to expose too much information or allow unverified code to change the behavior of your class. If you want the property to only be visible in your assembly, use the internal access modifier instead of public.