Questions tagged as 'c#'

1
answer

Decimal places in DGV in C #

Here are 2 images that summarize my problem. Image of db (Access) DataGridViewImage Whenthevalueswithdecimalplaces"0" are released the DGV does not show, eg: 1.00 = 1 1.50 = 1.5 Follow the properties of the field: Any way to...
asked by 13.10.2016 / 19:41
0
answers

Removing special character from the string does not work. W#

I have this string : EM RECUPERA�?�?O This string comes in a XML and I use the following code to handle this: byte[] bytes = Encoding.Default.GetBytes(xmlRetorno); xmlRetorno = Encoding.UTF8.GetString(bytes); But it is not...
asked by 13.10.2016 / 20:36
0
answers

Specified cast is not valid

I am developing an Academic Registration application in C #. I have some object composers like: public class Turma { public String Descricao { get; set; } public int QtdAlunos { get; set; } public Turno turno { get; set; } publ...
asked by 09.11.2016 / 21:29
1
answer

DataGrid - Last column lengthens too long

I have a datagrid displaying data from a table in a MySQL database. If all columns are with Width="Auto", when resizing the window the grid does not match. If I put it in the last column Width="*", it works as I wanted, following the resizing of...
asked by 08.11.2016 / 22:49
1
answer

Comparing dates in string, using SQLite and NHibernate

I'm using SQLite and NHIbernate, and I'm saving my Datas as String in SQLite because I can not store dates on it. Everything was going ok, but I had to compare dates to print a report. Now, I can not make this comparison because it...
asked by 04.11.2016 / 13:39
0
answers

How to remove SOAP header 'Security'

I'm trying to consume a SOAP 1.2 web service using a WCF client. The problem is, whenever I make a request a MessageSecurityException exception occurs with the following internal message: SOAP header Security was not understood As I...
asked by 01.11.2016 / 19:20
1
answer

How to set "Check" on columns with RepositoryItemCheckEdit

I have DataGrid that some columns are CheckBox , I'm using the RepositoryItemCheckEdit method of DevExpress to do this: However, how do I make a Check ? I know I need to use the gridView1.SetRowCellValue prope...
asked by 01.11.2016 / 15:16
1
answer

doubts with download files

I have a folder in the cloud, and I want to generate a list in the paginal html, with all these files, so that when the user clicks, open the downlaod of the file, I'm trying as follows (this code is test only): <a href="http://zulex.com.br...
asked by 01.11.2016 / 19:54
2
answers

Validating Login

I'm trying to login but I'm not able to do one thing. First check that the user and password fields are filled in. So far so good. Then I verify that the password and the user are correct. And if it is correct, it will open a new form. But...
asked by 09.10.2016 / 03:07
1
answer

How to concatenate a list of an object in a property of another object?

I have the following template: public class Usuario { public int idUsuario { get; set; } public string Nome { get; set; } public string Email { get; set; } public string Senha { get; set; } public int Permissao { get; set;...
asked by 08.10.2016 / 19:18