Click here to Skip to main content
15,894,540 members
Home / Discussions / C#
   

C#

 
GeneralRe: how can i improve these code's display efficient? Pin
smallkubi19-Dec-15 6:16
smallkubi19-Dec-15 6:16 
Questiondynamically create label Pin
Member 1048416216-Dec-15 11:38
Member 1048416216-Dec-15 11:38 
AnswerRe: dynamically create label Pin
Dave Kreskowiak17-Dec-15 2:10
mveDave Kreskowiak17-Dec-15 2:10 
AnswerRe: dynamically create label Pin
User 418025420-Dec-15 15:21
User 418025420-Dec-15 15:21 
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 
What is wrong with this code that is not updating my datagrid and consequentetly the data base table? Thank you for any help.

C#
using (OdbcConnection connection = CreateConnection())
{
  string CmdText = "update lojas set Bloqueado =@bloqueador, DataFim = @DataFim, Nome = @Nome where Id =@Id";

 OdbcCommand cm = new OdbcCommand(CmdText, connection);
 cm.CommandType = CommandType.Text;
 connection.Open();

 cm.Parameters.AddWithValue("@Id", grid_lic.CurrentRow.Cells[0].Value);
 cm.Parameters.AddWithValue("@bloqueador",grid_lic.CurrentRow.Cells[3].Value);
 cm.Parameters.AddWithValue("@DataFim",grid_lic.CurrentRow.Cells[4].Value);
cm.Parameters.AddWithValue("@Nome",grid_lic.CurrentRow.Cells[6].Value);

cm.ExecuteNonQuery();

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 
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 

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.