Click here to Skip to main content
15,867,686 members
Home / Discussions / C#
   

C#

 
QuestionDistribute a sql-based solution Pin
saeidfarahi26-Jun-09 10:09
saeidfarahi26-Jun-09 10:09 
AnswerCross post Pin
Not Active26-Jun-09 10:55
mentorNot Active26-Jun-09 10:55 
AnswerRe: Distribute a sql-based solution Pin
I Believe In GOD26-Jun-09 13:03
I Believe In GOD26-Jun-09 13:03 
GeneralRe: Distribute a sql-based solution Pin
saeidfarahi26-Jun-09 23:31
saeidfarahi26-Jun-09 23:31 
QuestionGoing back to original IF statement if another one returns false Pin
Baeltazor26-Jun-09 9:43
Baeltazor26-Jun-09 9:43 
AnswerRe: Going back to original IF statement if another one returns false Pin
Luc Pattyn26-Jun-09 9:49
sitebuilderLuc Pattyn26-Jun-09 9:49 
AnswerRe: Going back to original IF statement if another one returns false Pin
Christian Graus26-Jun-09 9:56
protectorChristian Graus26-Jun-09 9:56 
AnswerGoing back to original IF statement if another one returns false Pin
PunkIsNotDead26-Jun-09 10:03
PunkIsNotDead26-Jun-09 10:03 
You can't return to an IF statement...
Well and about the switch, it's easy to use... you only have to watch the switch value, cause with it you're going to work in the 'case' statements... ex:


foreach (DataRow dr in ((DataTable)this.Dgv_Datos.DataSource).Rows)
    {
        switch (dr.RowState)
            {
            case DataRowState.Modified:
                Regionalidades.Id_Regionalidad = Convert.ToInt32(dr["Id_Regionalidad"]);
                Regionalidades.NombreRegionalidad = dr["NombreRegionalidad"].ToString();
                Regionalidades.modificar(); }
                break;
            case DataRowState.Added:
                Regionalidades.NombreRegionalidad = dr["NombreRegionalidad"].ToString();
                Regionalidades.insertar(); }
                break;
            case DataRowState.Deleted:
                Regionalidades.Id_Regionalidad = Convert.ToInt32(dr["Id_Regionalidad", DataRowVersion.Original].ToString());
                Regionalidades.eliminar();                        
                break;
            }
       }

If you see over there, i've used the DataRow 'dr' to verify the RowState (Added, Modified or Deleted) of a DataGridViewRow... well the Namespace Regionalidades is a reference for the class, so it doesn't matter in the code... well i hope it helps... Suspicious | :suss:
QuestionHelp with DataGridViewComboBoxColumn... Pin
PunkIsNotDead26-Jun-09 9:40
PunkIsNotDead26-Jun-09 9:40 
QuestionGroupbox/panel border problems Pin
Dan Neely26-Jun-09 8:34
Dan Neely26-Jun-09 8:34 
AnswerRe: Groupbox/panel border problems Pin
Luc Pattyn26-Jun-09 9:44
sitebuilderLuc Pattyn26-Jun-09 9:44 
GeneralRe: Groupbox/panel border problems Pin
Dan Neely26-Jun-09 10:05
Dan Neely26-Jun-09 10:05 
GeneralRe: Groupbox/panel border problems Pin
Luc Pattyn26-Jun-09 10:10
sitebuilderLuc Pattyn26-Jun-09 10:10 
GeneralRe: Groupbox/panel border problems Pin
Dan Neely26-Jun-09 10:17
Dan Neely26-Jun-09 10:17 
QuestionProblems with System.Drawing Pin
Rsesky00026-Jun-09 6:10
Rsesky00026-Jun-09 6:10 
AnswerRe: Problems with System.Drawing Pin
musefan26-Jun-09 6:26
musefan26-Jun-09 6:26 
GeneralRe: Problems with System.Drawing Pin
Luc Pattyn26-Jun-09 6:51
sitebuilderLuc Pattyn26-Jun-09 6:51 
QuestionCan not set NullValue to Null for numeriacl DataTypes in DataSet designer. Pin
hdv21226-Jun-09 3:51
hdv21226-Jun-09 3:51 
AnswerRe: Can not set NullValue to Null for numeriacl DataTypes in DataSet designer. Pin
Dave Kreskowiak26-Jun-09 5:22
mveDave Kreskowiak26-Jun-09 5:22 
QuestionVideo Processing Image Formats Pin
tvbarnard26-Jun-09 3:25
tvbarnard26-Jun-09 3:25 
AnswerRe: Video Processing Image Formats Pin
Dave Kreskowiak26-Jun-09 5:20
mveDave Kreskowiak26-Jun-09 5:20 
GeneralRe: Video Processing Image Formats Pin
riced26-Jun-09 7:00
riced26-Jun-09 7:00 
AnswerRe: Video Processing Image Formats Pin
Christian Graus26-Jun-09 9:31
protectorChristian Graus26-Jun-09 9:31 
QuestionRe: Video Processing Image Formats Pin
tvbarnard27-Jun-09 6:01
tvbarnard27-Jun-09 6:01 
QuestionBarcoding Pin
ziwez026-Jun-09 2:23
ziwez026-Jun-09 2:23 

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.