Click here to Skip to main content
15,891,837 members
Home / Discussions / C#
   

C#

 
QuestionUse variable in Powershell Pin
Alexduu16-Dec-15 3:12
Alexduu16-Dec-15 3:12 
AnswerRe: Use variable in Powershell Pin
Richard MacCutchan16-Dec-15 3:17
mveRichard MacCutchan16-Dec-15 3:17 
Questionflipkart seller api with .Net Pin
rajaramesh3615-Dec-15 16:40
rajaramesh3615-Dec-15 16:40 
QuestionUpdating of datagrid is not happening Pin
Member 1144944715-Dec-15 5:07
Member 1144944715-Dec-15 5:07 
GeneralRe: Updating of datagrid is not happening Pin
CHill6015-Dec-15 5:13
mveCHill6015-Dec-15 5:13 
GeneralRe: Updating of datagrid is not happening Pin
Member 1144944715-Dec-15 23:06
Member 1144944715-Dec-15 23:06 
GeneralRe: Updating of datagrid is not happening Pin
CHill6015-Dec-15 23:31
mveCHill6015-Dec-15 23:31 
GeneralRe: Updating of datagrid is not happening Pin
Member 1144944715-Dec-15 23:46
Member 1144944715-Dec-15 23:46 
By the end I mean after cliking in the button "upgrade" where this code is inserted. I change data by typing over what is in the cell.

I populate the datagrid this way:
C#
 using (OdbcConnection connection = CreateConnection())
 {
OdbcCommand Command = new OdbcCommand("insert into lojas (NIF, Loja, bloqueado, DataFim, lastupdate, Nome) values (?, ?, ?, ?, ?, ?)", connection);

Command.CommandType = CommandType.Text;

Command.Parameters.AddWithValue("@N  IF", grid_lic.CurrentRow.Cells[1].Value);
Command.Parameters.AddWithValue("@Loja", grid_lic.CurrentRow.Cells[2].Value);
Command.Parameters.AddWithValue("@Bloqueado", grid_lic.CurrentRow.Cells[3].Value);
Command.Parameters.AddWithValue("@DataFim", grid_lic.CurrentRow.Cells[4].Value);
Command.Parameters.AddWithValue("@lastupdate", grid_lic.CurrentRow.Cells[5].Value);
Command.Parameters.AddWithValue("@Nome", grid_lic.CurrentRow.Cells[6].Value);
Command.ExecuteNonQuery();
}

GeneralRe: Updating of datagrid is not happening Pin
CHill6016-Dec-15 0:21
mveCHill6016-Dec-15 0:21 
GeneralRe: Updating of datagrid is not happening Pin
Member 1144944716-Dec-15 0:25
Member 1144944716-Dec-15 0:25 
Questionhow can i get Array sort index? Pin
smallkubi15-Dec-15 0:06
smallkubi15-Dec-15 0:06 
AnswerRe: how can i get Array sort index? Pin
OriginalGriff15-Dec-15 1:09
mveOriginalGriff15-Dec-15 1:09 
AnswerRe: how can i get Array sort index? Pin
harold aptroot15-Dec-15 1:49
harold aptroot15-Dec-15 1:49 
GeneralRe: how can i get Array sort index? Pin
smallkubi15-Dec-15 2:48
smallkubi15-Dec-15 2:48 
GeneralRe: how can i get Array sort index? Pin
harold aptroot15-Dec-15 3:19
harold aptroot15-Dec-15 3:19 
GeneralRe: how can i get Array sort index? Pin
smallkubi15-Dec-15 4:16
smallkubi15-Dec-15 4:16 
AnswerRe: how can i get Array sort index? Pin
BillWoodruff15-Dec-15 4:52
professionalBillWoodruff15-Dec-15 4:52 
Questionhow to improve paint() speed? Pin
smallkubi14-Dec-15 19:26
smallkubi14-Dec-15 19:26 
AnswerRe: how to improve paint() speed? Pin
BillWoodruff14-Dec-15 21:44
professionalBillWoodruff14-Dec-15 21:44 
GeneralRe: how to improve paint() speed? Pin
smallkubi15-Dec-15 0:03
smallkubi15-Dec-15 0:03 
Questionc# problem with combobox in form opened in panel Pin
Member 1182236414-Dec-15 5:27
Member 1182236414-Dec-15 5:27 
AnswerRe: c# problem with combobox in form opened in panel Pin
Simon_Whale14-Dec-15 5:37
Simon_Whale14-Dec-15 5:37 
GeneralRe: c# problem with combobox in form opened in panel Pin
Member 1182236414-Dec-15 5:47
Member 1182236414-Dec-15 5:47 
GeneralRe: c# problem with combobox in form opened in panel Pin
Simon_Whale14-Dec-15 5:51
Simon_Whale14-Dec-15 5:51 
GeneralRe: c# problem with combobox in form opened in panel Pin
Member 1182236414-Dec-15 5:56
Member 1182236414-Dec-15 5:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.