Kavi's Q&A profile
Visual C# How can I filter data by DataTable ?
Please tell me how to filter data by Dataset or DataTable Thanks in advance ! hi, the easist way to do that is to filter your bindingsource like for example Mybindingsource.Filter = string .Format( "MycolumnName = '{0}'" ,valueToUseAsAFilter); but you can use dataview if you want to filter some records in your dataset , it will give you a desired view of data in your dataset then later you bind your controls to the dataview as you bind your controls to anytable programaticly DataView Dv = new DataView (MyDataset.Mytable, "write yor filter here" , "column you will use to sort data ...Show All
Visual Studio Team System How can i write custom rules in FxCop?
Hi All, I like to know the step by step procedure to write the custom rules in fxCop. I got some articles regarding this subject from the net, but all are confusing. I'm using FxCop 1.32. I like to know the following things 1. How can I write a simple custom rule using Visual Studio.Net (in C#) for the Introspection engine. 2. How can I debug it and make sure that it is error free. 3. After developing my custom rule, how can I add it to the FxCop Plz explain the procedure with a simple example. Thanks in advance, Jack There is no official documentation for the FxCop sdk. We are working on a plan to develop one. http:/ ...Show All
.NET Development New to web services, soap client not referenced.
I'm running through a tutorial trying to get my head around web services: http://my.execpc.com/~gopalan/dotnet/webservices/webservice_server.html being the tutorial, now i've built the Service, and have coded the Client from the tutorial, only for Visual Studio to throw this error when i try and compile the console application: c:\Inetpub\wwwroot\ConsoleApplication2\bin\Debug\Service1.dll Referenced class 'Service1' has base class or interface 'System.Web.Services.Protocols.SoapHttpClientProtocol' defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Services'. At which point its gone over ...Show All
SQL Server UK Datetime parameter problem SQL 2005 RS
Hi, I am having a problem with the DateTime parameter option in SQL 2005 reporting services. Note that Server, workstation and database are set to British/English (UK) date/time localisation (dd/MM/yyyy) for example 25 th December 2005=25/12/2005. I create a simple query with a parameter on a datetime column and set the report parameter to Data type: DateTime in the report parameters dialog. On preview or after deployment the following behaviour is observed. Selecting 1st February 2006 in the datetime picker control populates the date parameter entry field with 01/02/2006 = 1st February 2006 (the c ...Show All
Windows Forms MDI parent with GroupBox covering all child forms
I need a background image for an MDI parent that scales as the window is resized. To accomplish this, I've created added an Infragistics groupbox (which allows for scalable backgrounds) to the parent. This works great until an MDI child is shown, as it's covered up by the groupbox. I've tried bringing the child to front, but to no avail. I've also tried sending the groupbox to back, but that does not work either. Any ideas for how to add a control to an MDI parent in such a way that it doesn't cover up child forms TIA If scaling an image and drawing it to the MDIClient is not the ...Show All
Visual Studio Team System Reducing the change-tracking scope for Team Build reports.
Hi, In one system, 7 components (.net project) are managed by one Team Project. One build type exists that builds the complete solution. There are some people dedicated to keep track of only the changes within one specific component (one scenario is that one of the components is being shared between other projects and therefore needs more detailed Configuration Management). For the complete build, the build report lists all changes since the last build for the whole projects, but for the smaller build types only covering one .Net project, all other changes in the other .Net projects are included in the build report. ...Show All
SQL Server Switching to WindowsAuthentication only
We are changing our way of authentication to WindowsSec only. But, under wich account do you mostly create a database then, the same account that is running the services Any hint is welcome. I would prefer not doing this with my own account as i don't want to be the owner of the database .... Kinds Regards, Harry Hi, First: "Database Owner (dbo) The dbo is a user that has implied permissions to perform all activities in the database. Any member of the sysadmin fixed server role who uses a database is mapped to the special user inside each database called dbo. Also, any object created b ...Show All
Microsoft ISV Community Center Forums Update document properties on MS site server
Hello, I hope that this is the right place to ask my question about MS Site Server. After the migration to new user accounts I want to change the ownership of the documents in our content management system. With this code “Select owner FROM ContentManagement..SCOPE(' ""D:\Inetpub\trnintranet\publishing"" ') Where…. “ it is possible to show all documents from a specific owner. I tried to make an update statement "update ContentManagement..SCOPE(' ""D:\Inetpub\trnintranet\publishing"" ') set owner = ""EU\RNL20019"" Where ( CONTAINS(owner, '""EU\RNL20023*&q ...Show All
Visual C# In C# ,is there any similar to "vbCrLf" in visual basic ?
When I manipulate with a string , i dont know the way similar to "vbCrlf" in visual basic . Please help me a little , thank you very much.Maybe its easy for many people here. Blair Allen Stark wrote: System.Environment.NewLine Thank you indeed , it works ! ...Show All
SQL Server tricky UPDATE statement
I need to update each record in a table based on selected values from that same table. The table contains 3 money fields (ActualRev,ScheduledRev and TransRev ) There is also a stageNumber value in the same table. What I need to do is update the TransRev field in each record based on the stageNumber. If (stageNumber = 1) I need to set TransRev to (ScheduledRev where the stageNumber = 0 and then subtract (ScheduledRev where the stageNumber = 1) If (stageNumber = 3) need to set TransRev to (ScheduledRev where the stageNumber = 2 If (stageNumber = 4) need to set TransRev to (ScheduledRev where the stageNumber = 2 )+ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. errror 1721
when i trying to instal XNA build system .. then i get this error : error 1721. There is a problem with this windows installer package. A program required for this install to complete could not be run. i running Windows XP home edition & SP 2 whats wrong.. This is most likely caused by a corrupt download. I would suggest trying to download the installer again, and possibly using a download manager to assure that it's correct. Also make sure your extracting the files in a short path like C:\Temp when you attempt to install from the desktop it tends to cause problems. If this doesn't work let us know! Thanks! ...Show All
.NET Development The -name parameter available under WSEWSDL2 has disappeared in WSEWSDL3
I have migrated production code from WSE 2.0 to WSE 3.0, however I cannot generate the client proxy file from my TCP-based WSE3.0 web services using wsewsdl3.exe. The production web services have endpoints configured with an address Uri and via Uri, as follows: Uri address = new Uri ( "urn:WSE3" ); Uri via = new Uri ( "soap.tcp://0.0.0.0:50010" ); EndpointReference EPR = new EndpointReference (address, via); SoapReceivers .Add(EPR, this ); Under WSE 2.0 I was able to obtain the client proxy file (saved as client.cs) using the following command: Wsewsdl2 soap.tcp://localhost:50010 - name urn:WSE3 client.cs What is the com ...Show All
.NET Development error using vb2005 SingleInstance (edit: NOD32 causes problems to SDI framework)
Hello, I am using win xp pro sp2, .net framework 2.0.50727 and visual basic 2005 8.0.50727.42 (RTM.50727-4200) i have some errors when creating a single instance application. i have created a singleinstance app by checking the SingleInstance property and i catch the events on my app events designer: Partial Friend Class MyApplication Private Sub MyApplication_StartupNextInstance(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationService s.StartupN extInstanc eEventArgs ) Handles Me.StartupNextInstance Dim args As String = "" Dim arg As String For Each arg In e.CommandLine args &= " " & arg Next ...Show All
Visual Studio Two way synchronization
Hi all, As far as I know The DSL Toolkit doesn't support two way synchronization out of the box. Suppose I want to implement it (at least try). What are my best options Just writing the "raw xml" I think I heard somebody speak about a DSL demo at the PDC were synchronization between two models was demo-ed. How was this implemented Thanks in advance. Edward The DSL Tools V1 won't support two synchronization out of the box. Usually you would have one model in the designer, another model of the text/code representation in memory and you would use custom code to synchronize them each way. The PD ...Show All
Visual Studio average a field from the group footer
Using CR XI... I have a formula called @total that looks like: Shared numberVar FallingTotCost + Shared numberVar SkiddingTotCost + Shared numberVar LoadingTotCost + Shared numberVar ProcessingTotCost + Shared numberVar LowBedTotCost + Shared numberVar TotalFixed + {#RTotal}; which pulls shared variables from all over my report. This field is in the group footer. I need to average this number in the form footer. I can't average @total ('this field cannot be summarized'). How can I make this work Thanks! Amber Hello Amber, You will need to use running totals to accomplish this. I posted a link in an earl ...Show All
