Hi all, I'm not sure this is the right forum,but I thought I'll give it a try,since not getting answers from DevExpress support center. I'm using DevExpress GridView for winforms applications. Also using VS2010 and Linq to SQL. My grid view is binded to a LINQ table which represent a table in my database. Let say I have a Person class with two properties - FirstName and LastName. These two properties are persistent. What I'm trying to do is to add a third property which will not be persistent and called FullName = LastName + FirstName. This is working fine and the grid display the full name correctly. My problem is when trying to filter values using the filter buttons in the column header,the dropdown list is empty... When making FullName saved in the database - everything is OK. Can anyone save me? Thanks, Eli
eli15021979
Posts
-
filtering column value in DevExpress grid view -
AnsiNulls and QuatedIdentifiers default valuesproblem solved. In my schema compare the options if "Ignore AnsiNulls" and "Ignore QuatedIdentifiers" where checked,so updated AnsiNulls and QuatedIdentifiers settings was not marked as needs to be updated during the schema compare. Also,I've set AnsiNulls and QuatedIdentifiers default settings to true in database.sqlsettings file.
-
AnsiNulls and QuatedIdentifiers default valuesHi, Not sure it is the right forum... I'm using VisualStudio 2010 and trying to use schema compare tool to deploy changes from my db project to my database (SQL server 2008). when trying to deploy the changes I made in my db project I get anexception with the following message: "Cannot create index. Object 'v_TQ_IFCR_DATA_COVERAGE' was created with the following SET options off: 'ANSI_NULLS, QUOTED_IDENTIFIER'." If I will go the the index properties,I see that AnsiNulls and QuatedIdentifiers are set to project default. When changing those settings to ON I manage to deploy all updates without any exception. How can I change project default settings? I have more then 200 different objects(tables,stored procedures,functions,indexes etc.) and I don't want to change the settings of each object. Anyone? Thanks, Eli
-
Unable to bind StoryBoard to a label:doh: Beginners faults... Thanks a lot.. Best regards, Eli
-
Unable to bind StoryBoard to a labelHi, Thanks,it is working... :laugh: I have one more question: I'm trying to stop the story board when the trigger is being changed from true to false. I've set the story board name,and trying to stop it like this:
.
.
.but when the trigger switches to false,I receive the following InvalidOperationException: "Storyboard1 object Name found but it is not a BeginStoryboard object." Is there something I'm missing? Thanks again, Eli
-
Unable to bind StoryBoard to a labelHi, I'm facing a problem to bind a StoryBoard to a label in my WPF application. My XAML lloks like this:
<Label Height="28" Margin="308,27,250,0" Name="PostingStatusLabel" VerticalAlignment="Top" HorizontalContentAlignment="Left" Foreground="ForestGreen" FontWeight="bold"> </Label.Triggers> </Label>
When I'm trying to run this application.I get XAMLParseExeption at the start of Label.Triggers tag. Anyone? Best regards, Eli
-
Datagrid Row background binding issueIt sure did...:thumbsup: Wow...I guess WPF is much more difficult than i thought. Thanks a lot.. Best regards, Eli
-
Datagrid Row background binding issueHi Background and AlternativeRowBackground isn't good enough. As I mentioned before , the color of each row shall be retreived from the model(stored in the database). Also,there can be more than 2 users,and each user have it's own color. Tanks for your help, Eli
-
Datagrid Row background binding issueHi, I've stated to learn WPF and facing some binding problems when trying to bind data to data grid. My ViewModel contains an observable collection which bounds to a data grid. Each item in the collection contains a user name and other additional info. One of the requirements is to display each item in the data grid, while each user will have its own color(which is part of the additional info). For some reason I can't find a way to bind the row background color. My XAML looks like this:
Can anyone help me with this issue? Thanks, Best regards, Eli
-
Data relations and data setHi, I'm facing a problem to fetch data rows from a child table using data set and xml file , using VS2005 and created the data set and tables using the wizard. Please consider the following scenario: TABLE1 - InstalledProgramInfo - Name [string , Key] - UninstallSequenceNumber [int] TABLE2 - AdditionalBackupInfo - Name [string , Key] - Source [string , Key] - Destination [string , Key] Relation - InstalledProgramInfo_AdditionalBackupInfo (Name -> Name) , Relation type (one to many). The XML file content is as follow:
<InstalledProgramInfo>
<Name>AAA<</Name>
<UninstallSequenceNumber>0</UninstallSequenceNumber>
<AdditionalBackupInfo>
<Name>AAA</Name>
<Source>C:\SourceTest</Source>
<Destination>C:\DestTest</Destination>
</AdditionalBackupInfo>
<AdditionalBackupInfo>
<Name>AAA</Name>
<Source>C:\SourceTest1</Source>
<Destination>C:\DestTest1</Destination>
</AdditionalBackupInfo>
</InstalledProgramInfo>The code is as follow (The name of the data set is AppConfigurationDataSet):
AppConfigurationDataSet DataSet = new AppConfigurationDataSet();
DataSet.ReadXml("AppConfiguration.xml");
InstalledProgramInfoDataTable Table = (InstalledProgramInfoDataTable)DataSet.Tables["InstalledProgramInfo"];
foreach(InstalledProgramInfoDataRow CurrentRow in Table.Rows)
{
foreach(DataRow NestedRow in CurrentRow.GetChildRows("InstalledProgramInfo_AdditionalBackupInfo"))
{
DoSomething(); // I can't reach this code(the relation exist in CurrentRow!!!)
}
}Anyone? With best regards, Eli
-
DEBUG to RELEASEHi norish, I removed MSVCRT.lib from default libraries ignore list and it's working just fine. Thanks again, Eli
-
DEBUG to RELEASEHi David, I removed MSVCRT.lib from default libraries ignore list and it's working just fine. Thanks again, Eli
-
DEBUG to RELEASEHi David. Thanks for your help,but this warning is not my problem... I know that my problem is the errors below(LNK2001)...I just can't find the call for invalid_parameter_noinfo. According to MSDN(relating LNK2001):
When compiling with /MD, a reference to "func" in your source becomes a reference "__imp__func" in the object since all the run-time is now held within a DLL. If you try to link with the static libraries LIBC.lib or LIBCMT.lib, you will get LNK2001 on __imp__func. If you try to link with MSVCxx.lib when compiling without /MD you will not always get LNK2001, but you will likely have other problems.
All the libraries in the solution,as well as the executable, are being compiled with /Md option(i.e runtime library is a multhi-threaded DLL). In the linker option I specified the linker to ignore LIBC,LIBCMT and MSVCRT default libraries. But still,I get those error... Anything? Thanks again, Best regards, Eli
-
DEBUG to RELEASEHi norish. Thanks for your help. I know that this is my problem...I just can't find the call for invalid_parameter_noinfo. According to MSDN:
When compiling with /MD, a reference to "func" in your source becomes a reference "__imp__func" in the object since all the run-time is now held within a DLL. If you try to link with the static libraries LIBC.lib or LIBCMT.lib, you will get LNK2001 on __imp__func. If you try to link with MSVCxx.lib when compiling without /MD you will not always get LNK2001, but you will likely have other problems.
All the libraries in the solution,as well as the executable, are being compiled with /Md option(i.e runtime library is a multhi-threaded DLL). In the linker option I specified the linker to ignore LIBC,LIBCMT and MSVCRT default libraries. But still,I get those errors... Anything? Thanks again, Best regards, Eli
-
DEBUG to RELEASEHi, I'm facing some problem when trying to build my solution in Release mode(building in debug mode works fine). My solution contains several project(10 of them are static libraries and one is the executable which uses those libraries). One of the static libraries is the GUI implementation(MFC). I've configured the properties of each project in release mode(e.g. use MFC as a shared DLL , use runtime library as Multi-Threaded DLL[\Md] etc.). I've managed to compile the entire solution,but failed to link the executable. I'm getting the following error
Linking... GsaActLib.lib(g_act_hndlact.obj) : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification mfcs80.lib(nolib.obj) : warning LNK4098: defaultlib 'nafxcw.lib' conflicts with use of other libs; use /NODEFAULTLIB:library HmiLib.lib(h_windsp_formMng.obj) : error LNK2019: unresolved external symbol __imp___invalid_parameter_noinfo referenced in function "public: bool __thiscall std::_Tree<class std::_Tmap_traits<class IlvGadgetContainer *,int,struct std::less<class IlvGadgetContainer *>,class std::allocator<struct std::pair<class IlvGadgetContainer * const,int> >,0> >::const_iterator::operator==(class std::_Tree<class std::_Tmap_traits<class IlvGadgetContainer *,int,struct std::less<class IlvGadgetContainer *>,class std::allocator<struct std::pair<class IlvGadgetContainer * const,int> >,0> >::const_iterator const &)const " (??8const_iterator@?$_Tree@V?$_Tmap_traits@PAVIlvGadgetContainer@@HU?$less@PAVIlvGadgetContainer@@@std@@V?$allocator@U?$pair@QAVIlvGadgetContainer@@H@std@@@3@$0A@@std@@@std@@QBE_NABV012@@Z) HmiLib.lib(h_utils_studio_attrGadget.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo HmiLib.lib(h_utils_studio_enumGadget.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo HmiLib.lib(h_utils_studio_egGadget.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo .\Release/link.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe (tool returned code: 1120) Newlink - 5 error(s), 68 warning(s)
I've trying to google a little bit but didn't find an explanation for the above error. Anyone? :doh: With best regards, Eli -
Operating system hangs up + watchdog application for windowsThanks for your reply,I will try that. In case it is working - is it mean that ,for some reason,the operating system can't get enough physical memory(which is very weird because it is not consistent). Thanks again, Eli
-
Operating system hangs up + watchdog application for windowsI don't think it wil work since it is a dual-core computer - so only one CPU will be stucked.. Eli
-
Operating system hangs up + watchdog application for windowsHi, Our project(client\server application) support redundancy(i.e there 2 running servers,one of them is the root and the other is the secondary,and there are multiple clients connected to each one of the servers.once the root server is down,the secondary becomes the root server and continue to serve the clients from the same location the other server stopped). The servers uses PING messages between them to realize when a server(which can be the root server) is down(to switch to another root). In addition,we wrote some kind of watchdog application,which is running on each server,and which is being notified by it's server(keep alive events). In case that the watchdog didn't get such keepalive event for a predefined period of time(for example - the server is in endless loop) - the watchdog resets it's server in order to let another server to become a root server. So far so good :-D During one of our unit test,we encountered a problem which causes the operating system(Windows XP) of the root server to hangs(note that not only the server application hangs but the computer is not responding). In such case the watchdog application is not working also,therefor - cannot reset the root server. You probably ask yourself: "So whats the problem? The other server will try to PING to the other root server,and since the PING process will fail,the other server will become the root server." Well......you're wrong!!!!! :doh: For some reason,though the operating system hangs - it still response to PING request. Now for the questions... 1. We're looking for an API which causes the operating system to hangs (so when we'll fiind a solution we will be able test it. 2. Is there another way to stop PING handling while the operating system hangs? 3. Is there a built in watchdog mechanism in Windows XP that we can use(or another watchdog application which runs in a lower level and can reset the computer in case that the operating system hangs? Sorry for the (very) lonk post... With best regards, Eli
-
Monitoring Process CPU usage using WMIHi, Thanks for your reply. I'm looking for NextValue() and I can't find it(not in PropertyData and not in ManagementObject)... :sigh: Thanks again, With best regards, Eli
-
Monitoring Process CPU usage using WMIHi, I'm trying to write an application which monitor another application using WMI. One of the parameter I need to monitor is CPU usage by the monitored application. Just for the test - The tested process is devenv.exe(i.e Visual studio). When running the application and printing to the outout window I see that the process CPU usage is 0%(while the task manager shows 20-30%). Note that other parameters are OK(for example Virtual memory , Thread count etc.). This is my code to get all parameters related to devenv.exe:
private void MonitoringTimer\_Tick(object sender, EventArgs e) { ObjectQuery winQuery = new ObjectQuery("SELECT \* FROM Win32\_PerfFormattedData\_PerfProc\_Process WHERE Name = 'devenv'"); ManagementObjectSearcher searcher = new ManagementObjectSearcher(winQuery); foreach (ManagementObject item in searcher.Get()) { string s = ""; foreach (PropertyData PC in item.Properties) { if (PC.Value != null) { s = PC.Name + " : " + PC.Value.ToString(); } else { s = PC.Name + " : NULL"; } } s = "\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*"; } }
Can anyone help me solve this problem? With best regards, Eli