Posts by enzo • 323 points
19 posts
-
1
votes1
answer798
views -
3
votes1
answer1055
viewsQ: Selecting All Rows from a Datagridview
I wonder how I do to select all the Rows of a DataGridView. Code that I have: DataGridView.Rows[0].Cells[0].Value.ToString();
-
0
votes1
answer307
viewsQ: How to concatenate data from a Datagridview and Save to a single database field
I want to concatenate and save the fields of a datagridview, but I don’t know how to do it. What I Have: method: public void Gravar() { string strQuery; strQuery = "INSERT INTO Prato"; strQuery +=…
-
3
votes2
answers140
viewsQ: It is possible to save multiple values in a single database field
I declared the field in the database like this: descricao VARCHAR2(5)not null, It is possible, for example, to save 1,2,3,4 at once (a single record) in the field descricao, where each of these…
-
0
votes1
answer749
viewsQ: Saving fields with comma
What I need to do to save in a field currency-like values with the comma and send to the with the comma. As I declared the price field in the bank: preco number(12,2), Code: class clnPrato { private…
-
0
votes2
answers1756
views -
2
votes1
answer723
viewsQ: Update in Database by c#
I’m trying to update my database by visual Studio(c#), but the update is not being carried out I don’t know why. Table script(sql developer): CREATE TABLE Login ( Cod_login NUMBER(8) NOT NULL,…
-
0
votes2
answers1675
viewsQ: Validating Login
I’m trying to log in, but I’m not able to do one thing. I first check that the user and password fields are filled in. So far so good. I then check that the password and the user are correct. And in…
-
2
votes0
answers151
viewsQ: Change and Save Color from Datagridview Line
I want to change the color of the line DataGridView and even with you. Code: private void btnativo_Click(object sender, EventArgs e) { MudarCor(); } public void MudarCor() {…
-
2
votes2
answers46
viewsQ: How to prevent a command
I would like to prevent my record from being saved if the radiobutton were not selected. My code: private void btnSalvar_Click(object sender, EventArgs e) { if ((rdbMasculino.Checked == false)…
-
3
votes1
answer2240
viewsQ: Change the color of the Datagridview line
I would like to know how to change the color of a whole line of DataGridView. I have a code below, but it only changes the color of a specific column, and I would like it to change the color of all…
-
1
votes1
answer229
views -
4
votes2
answers2610
viewsQ: Date and time validation
How do I make so that in the date field, is not saved a date that has already passed, for example yesterday and in the time field is not typed an invalid time, for example 27:00, only the Brazilian…
-
0
votes1
answer57
viewsQ: How to import data from Datagridview to textboxs
As I do,when I click the modify button bring the data from a Datagridview row to the top fields and also if I save as inactive leave the line as Enabled = false.…
-
3
votes2
answers407
viewsQ: Completion of mandatory fields
How do I force at least one of the two fields to be mandatory (is filled)? For example, the fields Celular and Telefone cannot be saved empty, only one of them. My code: //.. } else ((txtNome.Text…
-
0
votes1
answer147
viewsQ: How to Save Radiobutton to Oracle
How do I save only the marked Radiobutton? Images below what I did. He’s saving one value, even though I marked the other.In my database I have to create a single field to save any of the…
-
4
votes2
answers92
views -
0
votes0
answers58
viewsQ: Data Conversion
I am making a program and I would like to know how to save a field that contains only characters, but send to the bank only your code? I am using two tables to save the data and the field I want to…
-
0
votes1
answer193
viewsQ: Typing in the Textbox
I’m doing a project in the visual studio and I need help. I wonder if there is a way or how to make it so that when I type in the textbox,this I typed start at the front regardless of the position…