// create tables in Database
SqlCeConnection ssceconn =
sqlCreateTable.CommandText = "CREATE TABLE clientstable(client_id int IDENTITY(0,1) PRIMARY KEY, c_name nvarchar(50), c_address nvarchar(50), c_suburb nvarchar(50), c_state nvarchar(20), c_country nvarchar(30), c_abn nvarchar(30), c_contact1 nvarchar(50), c_contact2 nvarchar(50), c_telephone nvarchar(30), c_fax nvarchar(30), c_mobile nvarchar(30), c_terms nvarchar(20), c_category nvarchar(20), c_discount nvarchar(10), c_startdate datetime)";
sqlCreateTable.ExecuteNonQuery();
SqlCeCommand sqlInsertRow = ssceconn.CreateCommand();
sqlInsertRow.CommandText = "INSERT INTO clientstable(c_name, c_address, c_suburb, c_state, c_country, c_abn, c_contact1) VALUES ('ELIAS', '120 Down Town', 'Road', 'Melbourne', 'Victoria', 'Australia', '123 123 123')";
sqlInsertRow.ExecuteNonQuery();
DataSet sqlDS =
DataGridTableStyle dgts =
dgts.MappingName = "clientstable";DataGridTextBoxColumn clientColumn =
DataGridTextBoxColumn nameColumn =
nameColumn.MappingName = "c_name";
addressColumn.MappingName = "c_address";
ssceconn.Close();
}
}-------------------------------------------------------------------------------------------The above code works interms of creating sql ce database and displaying in a dataGrid, however when trying to hide a column by setting its width=0 does not work.Any ideas ?Thanking you in advance !!!