Click here to Skip to main content
15,897,518 members
Home / Discussions / C#
   

C#

 
AnswerRe: print a webform (asp.net 2.0 with c#) [modified] Pin
dan!sh 26-Jun-09 20:57
professional dan!sh 26-Jun-09 20:57 
QuestionIE Toolbar not "selectable" Pin
Jerome Caldwell26-Jun-09 18:35
Jerome Caldwell26-Jun-09 18:35 
Questionsql c# connection for sign_in Pin
A_A26-Jun-09 18:18
A_A26-Jun-09 18:18 
AnswerRe: sql c# connection for sign_in Pin
Christian Graus26-Jun-09 18:26
protectorChristian Graus26-Jun-09 18:26 
AnswerRe: sql c# connection for sign_in Pin
padmanabhan N26-Jun-09 18:55
padmanabhan N26-Jun-09 18:55 
GeneralRe: sql c# connection for sign_in Pin
Christian Graus26-Jun-09 20:21
protectorChristian Graus26-Jun-09 20:21 
GeneralRe: sql c# connection for sign_in Pin
padmanabhan N26-Jun-09 20:41
padmanabhan N26-Jun-09 20:41 
GeneralRe: sql c# connection for sign_in Pin
A_A26-Jun-09 23:29
A_A26-Jun-09 23:29 
GeneralRe: sql c# connection for sign_in Pin
padmanabhan N26-Jun-09 23:40
padmanabhan N26-Jun-09 23:40 
GeneralRe: sql c# connection for sign_in Pin
A_A27-Jun-09 3:17
A_A27-Jun-09 3:17 
QuestionHow to get DiskDrive model if I know the Drive letter Pin
lexx_zone26-Jun-09 10:40
lexx_zone26-Jun-09 10:40 
AnswerRe: How to get DiskDrive model if I know the Drive letter Pin
I Believe In GOD26-Jun-09 13:44
I Believe In GOD26-Jun-09 13:44 
GeneralRe: How to get DiskDrive model if I know the Drive letter Pin
lexx_zone27-Jun-09 1:05
lexx_zone27-Jun-09 1:05 
GeneralRe: How to get DiskDrive model if I know the Drive letter Pin
padmanabhan N27-Jun-09 1:14
padmanabhan N27-Jun-09 1:14 
QuestionArbitrary length bitfields? Pin
Trollslayer26-Jun-09 10:32
mentorTrollslayer26-Jun-09 10:32 
AnswerRe: Arbitrary length bitfields? Pin
Luc Pattyn26-Jun-09 11:01
sitebuilderLuc Pattyn26-Jun-09 11:01 
GeneralRe: Arbitrary length bitfields? Pin
Trollslayer26-Jun-09 11:04
mentorTrollslayer26-Jun-09 11:04 
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:

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.