We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

(True/False) Locale Settings

Thread ID:





5497 Jul 6,2003 07:58 AM UTC Jul 6,2003 08:31 AM UTC WinForms 1
Tags: GridControl
Asked On July 6, 2003 07:58 AM UTC

I have a funny question. In the past, when I used ASP - VB Script and an Access Database to build a little application I had the following problem. One of the tables in the Database had a boolean value column which was modified by means of checkboxes in the Application. The application did not work corectly on my friends computer as it had a German version of Windows NT. For some reason certain boolean values (but noy all of them :)) were interpreted like: Wahr-Falsch instead of True-False. Now, I am trying to build my first application with the essential Grid and again I have boolean value columns in my database. In the Grid I use checkboxes to display/modify the values. Somewhere in my code I have: private void dgOutput_CheckBoxClick(object sender, Syncfusion.Windows.Forms.Grid.GridCellClickEventArgs e) { if(e.RowIndex > 0 && e.ColIndex > 0 ) { int checkBoxColIndex = 10; //Sell column if(e.ColIndex == checkBoxColIndex) { string s = this.dgOutput[e.RowIndex, checkBoxColIndex].Text; if(s == "False") Console.WriteLine(this._oID); else if(s == "True") Console.WriteLine("null"); } } }// dgOutput_CheckBoxClick(object sender, Grid.GridCellClickEventArgs e) On my English version XP this works fine. But on other Language OS, will it work the same? Is there any possibility to avoid this problem (if it might occur)? XP

Administrator [Syncfusion]
Replied On July 6, 2003 08:31 AM UTC

Try checking s == true.ToString() and s == false.ToString() instead of s == "True" and s == "False".


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon