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

(True/False) Locale Settings

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

1 Reply

AD Administrator Syncfusion Team July 6, 2003 04:31 AM

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

Loader.
Live Chat Icon For mobile
Up arrow icon