Hi guys,
I have this case: I import a fUTF-8 without BOM file that contains translations of several languages.
My application import using T-SQL command INSERT BULK with DATAFILETYPE = 'widechar' (It needs to import Unicode format)
sql = $"BULK INSERT CaptionFlat FROM '{OpenFileDialog.FileName}' WITH (DATAFILETYPE ='widechar', FIELDTERMINATOR =':',ROWTERMINATOR = '\n')";
Afterthat It keeps several operation and INSERT into other table that have a nvarchar field that will contain translation.
This table it will shows by RadGridView with this code
conn = new SqlConnection(Settings.Default.RTK2ConnectionString);sql = "SELECT CBase.[Key] [Key],\n" + "CBase.[Value] Base,\n" + $"ISNULL((SELECT [Value] FROM [Captions] WHERE [NAVKey] = CBase.[NAVKey] AND [LanguageID] = {LanguageToTranslateComboBox.SelectedValue}),'[Blank]') ToTranslate\n" + "FROM [Captions] CBase\n" + "WHERE CBase.[IsCaption] = 1\n" + $"AND CBase.LanguageID = {LanguageBaseComboBox.SelectedValue}";cmd = new SqlCommand(sql, conn);da = new SqlDataAdapter(cmd);dtCaptions = new DataTable("Captions");da.Fill(dtCaptions);CaptionsRadGridView.DataSource = dtCaptions;var obj = new ConditionalFormattingObject("BlankTranslation", ConditionTypes.Equal, "[Blank]", "", true);obj.CellForeColor = Color.Black;obj.RowBackColor = Color.LightCoral;CaptionsRadGridView.Columns["ToTranslateColumn"].ConditionalFormattingObjectList.Add(obj);CaptionsRadGridView.BestFitColumns(Telerik.WinControls.UI.BestFitColumnMode.DisplayedDataCells);conn.Close();
I attach the effects, where the last column shows an error.
The label in language in original file is (for example DE language) "Rack-Jobben (nur für Italien)" but in RadGrid it shows "Rack-Jobben (nur f├╝r Italien)".
Can you help me to understand waher I wrong?
