Click here to Skip to main content
15,905,323 members
Home / Discussions / C#
   

C#

 
AnswerRe: WCF catching EndPointNotFoundException Pin
Ravi Bhavnani28-Nov-09 7:51
professionalRavi Bhavnani28-Nov-09 7:51 
QuestionHow to decide whether a class is "internal" by .net reflection ? Pin
yoyota28-Nov-09 4:26
yoyota28-Nov-09 4:26 
AnswerCross Post Pin
dan!sh 28-Nov-09 5:50
professional dan!sh 28-Nov-09 5:50 
AnswerRe: How to decide whether a class is "internal" by .net reflection ? Pin
yoyota28-Nov-09 13:55
yoyota28-Nov-09 13:55 
QuestionHow to represent an image, voice & vedio trafic after we capture it from the app. layer at TCP ??? Pin
3bood.ghzawi28-Nov-09 4:20
3bood.ghzawi28-Nov-09 4:20 
AnswerRe: How to represent an image, voice & vedio trafic after we capture it from the app. layer at TCP ??? Pin
Christian Graus28-Nov-09 5:28
protectorChristian Graus28-Nov-09 5:28 
QuestionEditable data grid view? Pin
Emmet_Brown28-Nov-09 4:05
Emmet_Brown28-Nov-09 4:05 
AnswerRe: Editable data grid view? Pin
JollyMansArt28-Nov-09 8:51
JollyMansArt28-Nov-09 8:51 
-How can I call a table from database to view in this grid view

SqlDataAdapter SQL_Adapter;
     DataTable dtReport1 = new DataTable();
     string SQL_Command = "SQL STATEMENT GOES HERE"
     //if (cklbxColumns.Items.Count != 0)
     //{
         SQL_Command += "'" + strExecutive + "', '" + strToolClass + "'";
     //}

     try
     {
         using (SQL_Conn = new SqlConnection(WhatIsTheSQLConnectionString))
         {
             if (SQL_Conn.State != ConnectionState.Open)
             {
                 SQL_Conn.Open();
             }
             else
             {
                 SQL_Conn.Close();
                 SQL_Conn.Open();
             }

             //using (SQL_Adapter = new SqlDataAdapter("SQL STATEMENT GOES HERE", SQL_Conn))
             using (SQL_Adapter = new SqlDataAdapter(SQL_Command, SQL_Conn))
             {
                 // Use DataAdapter to fill DataTable

                 SQL_Adapter.Fill(dtReport1);
                 // 4
                 // Render data onto the screen
                 // dgvReport = DataGridViewer
                 dgvReport.DataSource = dtReport1;
                 //dgvReport.DataMember = "dtToolStatusboardReport";
                 dgvReport.Refresh();
                 gbToolStatusBoard.Refresh();
                 //ActiveForm.Refresh();
             }
             SQL_Adapter.Dispose();
         }
         SQL_Conn.Close();
     }
     catch
     { return; }





-How can I save the table's final state? (this is a single usered non-online system so performance is not issue, I can appreciate a solution that drops the previous table and creates a new one with the edited data grid view)
For this method you would simply export the datatable directly back to the main table after flushing out the data in the origional table.
GeneralRe: Editable data grid view? Pin
Emmet_Brown29-Nov-09 0:28
Emmet_Brown29-Nov-09 0:28 
QuestionReflected Assembly -> Class Instance should have no Access to the System (Sandbox) Pin
softwarejaeger27-Nov-09 23:43
softwarejaeger27-Nov-09 23:43 
AnswerRe: Reflected Assembly -> Class Instance should have no Access to the System (Sandbox) Pin
0x3c028-Nov-09 0:57
0x3c028-Nov-09 0:57 
AnswerRe: Reflected Assembly -> Class Instance should have no Access to the System (Sandbox) Pin
PIEBALDconsult28-Nov-09 4:55
mvePIEBALDconsult28-Nov-09 4:55 
QuestionCryatal report error Pin
sachees12327-Nov-09 23:38
sachees12327-Nov-09 23:38 
AnswerRe: Cryatal report error Pin
Saksida Bojan28-Nov-09 0:17
Saksida Bojan28-Nov-09 0:17 
GeneralRe: Cryatal report error Pin
sachees12328-Nov-09 1:02
sachees12328-Nov-09 1:02 
GeneralRe: Cryatal report error Pin
c0ax_lx28-Nov-09 2:38
c0ax_lx28-Nov-09 2:38 
QuestionRetrieve the control's name Pin
Islorvat27-Nov-09 23:23
Islorvat27-Nov-09 23:23 
AnswerRe: Retrieve the control's name Pin
Rob Philpott27-Nov-09 23:31
Rob Philpott27-Nov-09 23:31 
AnswerRe: Retrieve the control's name Pin
c0ax_lx27-Nov-09 23:34
c0ax_lx27-Nov-09 23:34 
GeneralRe: Retrieve the control's name [modified] Pin
Luc Pattyn28-Nov-09 0:54
sitebuilderLuc Pattyn28-Nov-09 0:54 
QuestionRe: Retrieve the control's name Pin
c0ax_lx28-Nov-09 1:07
c0ax_lx28-Nov-09 1:07 
AnswerRe: Retrieve the control's name Pin
Luc Pattyn28-Nov-09 1:20
sitebuilderLuc Pattyn28-Nov-09 1:20 
GeneralRe: Retrieve the control's name Pin
c0ax_lx28-Nov-09 1:31
c0ax_lx28-Nov-09 1:31 
GeneralRe: Retrieve the control's name Pin
PIEBALDconsult28-Nov-09 4:59
mvePIEBALDconsult28-Nov-09 4:59 
GeneralRe: Retrieve the control's name Pin
Luc Pattyn28-Nov-09 6:00
sitebuilderLuc Pattyn28-Nov-09 6:00 

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.