I create a table in my Microsoft Access database in C# using the following code:
query= "CREATE TABLE test1( [city] CHAR(60),[street] CHAR(60))";
OleDbCommand cmd = new OleDbCommand(query, connection);
result = cmd.ExecuteNonQuery();
All works fine. When I open the table in Microsoft Access I see a row with these 2 fields and with some layout. I write in the field "city" some text in Hebrew that might be more long that current layout of this field. When I go to the next field the text in field "city" is not visible. So I increase the layout of city field and I see that all text is not justified to left and to right, there are some spaces between right bound of column and the most right letter of the text. If I try in Design view to define property "Text Align" of this field as "Left" it does not help. But if I add a new field when I still work with this table in Access and write in Hebrew there is no such problem: the text is aligned to the left and it is visible when I go to other field. So my question: is there any possibility to solve this problem that is to make text be justified to the left in any case? I do not see any properties or methods that could help to define programmatically a layout of table. Also in environment of Access the layout is saved after any change (if user approves this) but I did not find any property where it is saved.