Anton L.'s Q&A profile
SQL Server How to control visibility of table columns at runtime?
Hi all.. Using ReportViewer in an ASPX page, is it possible to hide certain columns of a table at runtime That table is databound to a business object and I'm using local reporting capabilities of Visual Studio 2005. Thanks Jaime I assume you are using a "table" reportitem. In report designer you can select the entire column of a table. In the properties window (F4), you should then see a "Visibility" property. You could set the Visibility.Hidden property to e.g. =Parameters!HideColumns.Value (assuming HideColumns is a boolean report parameter). -- Robert ...Show All
Windows Forms how can i select all checkboxes by clicking a button or checking another checkbox
hi, i hv this DGV with checkboxcolumn inside it. How can i check(select) all the rows by just clicking a button or checking a checkbox. tq. it's not working man...when set .selected = true, instead of checking all checkboxes, it will select all rows but not the checkboxes. 2nd prob: how to uncheck those checkboxes that have been ticked after a button click event. Similar to uncheck all checkboxes. ...Show All
SQL Server SQL Server 6.5 - 2000 Upgrade Tips
Im currently in the process of upgrading a mission critical financial database from 6.5 to 2000, and i thought while i come across some problems I might as well post them here in case anyone else needs some help. I found there wasnt much material out there that supplies all the anomolies between 6.5 and 2000 so this post might be of some use. Mods might want to make this a sticky Anyway first thing is the treatment of NULL's this is a simple one! Bascially 6.5 will treat NULL's the same everywhere i.e. this example will work in 6.5 if @var is NULL IF @var = NULL <do something> depending on whether AN ...Show All
SQL Server Passing Multivalue Parameters Through a Report Link
I've created a line chart in my report which lists number of transactions by month. I've also created a report to list transactions by day. My goal is for the user to select a month and link the report to the graph with the selected month divided up into days (in other words, the user wants to see the number of transactions for each day in the selected month). Anyway, everything is working perfectly except for one thing. In the list of parameters that I am passing to the report for each day, I want to pass a multivalue parameter which contains all the transaction IDs the user selected in creating the report (these are supplied by a multiv ...Show All
.NET Development Provider error while reading DBF file
Dear All, I am newbie in dbf manipulations .currently I have downloaded foxpro driver from the site . but when I am tying to open my DBF file it gives me error like "The Provider could not determine the Decimal value . For Example,the row was just created the default for the Decimal column was not available,and the consumer had not yet set a new Decimal value" I am using the following code snippet to open .DBF file:- try { strConnect="User ID=;DSN=;Collating Sequence=MACHINE;Data Source= '" + frmViewer.lay + "' ;Provider=VFPOLEDB.1;Cache Authentication=False;Mask Password=False;persist securi ...Show All
.NET Development Delay
What command in C# make a delay in program (like Sleep() in C++) What are you trying to achieve with the Sleep Although, you can sleep the current thread via Thread.Sleep, doing this on the main thread is typically a bad thing as this will prevent Windows messages from being processed, and to the user it will seem like your application has locked up. If you are using this in a Windows Forms application, it is probably better to use a Timer class. ...Show All
Visual Studio MSBUILD (publish – click once) RC on build server
I am trying to get our build server working with the RC of .NET v2. With beta2 I could make use of MSBUILD just by installing the Runtime and the SDK on the build server. (I do not like having to install Visual Studio on the build server.) When the RC there does not seem to be a SDK, what do I need to install on the build server so that I can build using the RC version of MSBUILD, including “publish” for “click once”. I have installed the “Run time” that I found on the RC DVD image but that does not seem to be enough for “publish” is it ok for basic compiles. (We need to test out our ...Show All
Visual Basic Warnings/Errors created during an upgrade of a 2003 Asp.Net application
Hello: After installing VS2005, I opened a 2003 ASP.Net application and rebuilt it. It comes up with the following error messge: Warning 1 The element 'compilation' has invalid child element 'compilers'. List of possible elements expected: 'assemblies, buildProviders, codeSubDirectories, expressionBuilders'. C:\Inetpub\wwwroot\InnoBox\Web.config 16 5 C:\...\InnoBox\ The offending line in web.config is below: < compilers > < compiler language = " vb " type = " Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089 " extension = " ...Show All
Visual Studio Team System FxCop Are there any Custom rules written in VB.net?
Please Help. Download a sample and trying to convert into VB.net so I can understand it. Used SharpDevelop to convert it, but got some problem as hightlighted in red. "CoversionHelper" does not exist. any help would be appreciated. Thnaks in advance. public override ProblemCollection Check(Member m) { Method method = m as Method; if (method == null) return null; int instructionsCount = method.Instructions.Length; for (int i = 0; i < instructionsCount; i++) { Instruction instruction = method.Instructions ; if (instruction.OpCode == OpCode.Ldstr) { string text = instruction.Value as string; if (text ...Show All
Smart Device Development Deployment issue
Hi, i created a new C# Smart Device Pocket PC Windows Application Project. At that point, all i try to do is build and deploy. The build is successful. When i then try Build->Deploy, i select the "Pocket PC 2003 Emulator", and the the deployment begins (i assume). The emulator is launced with the Programs screen showing, and after a LONG while, it appears as though the deployment fails. this is what i see in the output window ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== ========== Deploy: 0 succeeded, 1 failed, 0 skipped ========== how do i actually test that ...Show All
SQL Server How do you find out whether PC is 32bit or 64bit
I would like to install MS SQL Management Express, and I would like to make sure I am downloading the right files. Could you tell me how I can find out whether my PC is 32bit or 64bit Many thanks W aka Gauguin If you don't know whether it's 32 bit or 64 bit, it's fairly safe to assume it's 32 bit. ...Show All
Visual Studio Express Editions Compile a program as a Microsoft Windows service?
Is it possible to make a program as a Microsoft Windows service I need to know, and now that I look, it isn't available in the express edition. Ouch. . . you might be screwed here. . . Get your server class in a remotable format - that is, in a manner that can be loaded as a .Net Remoting server via a console exe. does that make sense If it doesn't, go through a walkthrough for making a simple remoting client/server. when you can do that, I will give you some code that uses API interop to load it as a windows service instead of a console app. Its in C# though. . . but thats a good thing! ...Show All
.NET Development XML namespace
namespace is used for extending XML document that's define by another / different people for example soap, someone defined soap envelope which is the basic structure / framework <HEADER> <XBODY> ...etc< div> then user of soap can add his own elements inside the framework --> inside <HEADER> tag or <XBODY> div tag.<> but the new user elements is defined by different people then soap envolpe, so we need to have another namespace is that the only reason why we need namespace any other reason we need namespace for each element Thanks Hello ...Show All
Visual C# Read static class members from the class type
Hello, I have a class type that I can get from typeof(MyType) and I need to access that class' static members, like in the following: class MyType { public const string DefaultName = "myname"; // ... } Type type = typeof(MyType); //... Now how can I access MyType.DefaultName without explicitly knowing at compile time that it's a MyType I want to put some types into a list and iterate that list at runtime to see if I can convert some generic object into a more special class. I need the static string members available at construction time because they're ...Show All
Windows Forms Data Validation in Smart Client Applications
I am currently evaluating Billy Hollis' Windows data validation control for possible use in a smart client application. Because this is a third-party tool *and* it's unsupported, I want to get as much real-life feedback as possible before I use it. I have 4 questions: If you've used his data validation control: 1) Are there any bugs/issues/stability problems w ...Show All
