Click here to Skip to main content
15,918,596 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to read value of a cell in GridView (DevExpress)? Pin
Richard MacCutchan7-Jul-21 6:10
mveRichard MacCutchan7-Jul-21 6:10 
AnswerRe: How to read value of a cell in GridView (DevExpress)? Pin
OriginalGriff7-Jul-21 5:52
mveOriginalGriff7-Jul-21 5:52 
QuestionSYSTEM process and corresponding user process both need access to Registry HKLM section - StartAsCurrentUser.exe not working with VS2019 Pin
Emil123456875-Jul-21 22:25
Emil123456875-Jul-21 22:25 
AnswerRe: SYSTEM process and corresponding user process both need access to Registry HKLM section - StartAsCurrentUser.exe not working with VS2019 Pin
Victor Nijegorodov5-Jul-21 23:44
Victor Nijegorodov5-Jul-21 23:44 
AnswerRe: SYSTEM process and corresponding user process both need access to Registry HKLM section - StartAsCurrentUser.exe not working with VS2019 Pin
Dave Kreskowiak6-Jul-21 5:04
mveDave Kreskowiak6-Jul-21 5:04 
AnswerRe: SYSTEM process and corresponding user process both need access to Registry HKLM section - StartAsCurrentUser.exe not working with VS2019 Pin
Emil123456876-Jul-21 5:24
Emil123456876-Jul-21 5:24 
GeneralRe: SYSTEM process and corresponding user process both need access to Registry HKLM section - StartAsCurrentUser.exe not working with VS2019 Pin
OriginalGriff6-Jul-21 11:19
mveOriginalGriff6-Jul-21 11:19 
QuestionHandling Volume and Mixing as a DJ Pin
Filip D. Williams5-Jul-21 21:47
Filip D. Williams5-Jul-21 21:47 
AnswerRe: Handling Volume and Mixing as a DJ Pin
Gerry Schmitz6-Jul-21 7:12
mveGerry Schmitz6-Jul-21 7:12 
GeneralRe: Handling Volume and Mixing as a DJ Pin
Filip D. Williams7-Jul-21 20:40
Filip D. Williams7-Jul-21 20:40 
QuestionHow to solve this Error in SQLite? Pin
Alex Dunlop5-Jul-21 7:48
Alex Dunlop5-Jul-21 7:48 
AnswerRe: How to solve this Error in SQLite? Pin
Dave Kreskowiak5-Jul-21 7:56
mveDave Kreskowiak5-Jul-21 7:56 
AnswerRe: How to solve this Error in SQLite? Pin
OriginalGriff5-Jul-21 7:56
mveOriginalGriff5-Jul-21 7:56 
QuestionHow to get pdf file names? Pin
Alex Dunlop4-Jul-21 6:54
Alex Dunlop4-Jul-21 6:54 
AnswerRe: How to get pdf file names? Pin
OriginalGriff4-Jul-21 7:57
mveOriginalGriff4-Jul-21 7:57 
GeneralRe: How to get pdf file names? Pin
Alex Dunlop5-Jul-21 4:43
Alex Dunlop5-Jul-21 4:43 
GeneralRe: How to get pdf file names? Pin
OriginalGriff5-Jul-21 5:44
mveOriginalGriff5-Jul-21 5:44 
GeneralRe: How to get pdf file names? Pin
Alex Dunlop5-Jul-21 7:21
Alex Dunlop5-Jul-21 7:21 
GeneralRe: How to get pdf file names? Pin
OriginalGriff5-Jul-21 7:53
mveOriginalGriff5-Jul-21 7:53 
QuestionIs it possible to update content of an xml file in DropBox using DropBox API? Pin
Alex Dunlop2-Jul-21 8:51
Alex Dunlop2-Jul-21 8:51 
AnswerRe: Is it possible to update content of an xml file in DropBox using DropBox API? Pin
Dave Kreskowiak2-Jul-21 19:08
mveDave Kreskowiak2-Jul-21 19:08 
QuestionHow to add frame and Label controls at the same time by clicking a button in Xamarin? Pin
Alex Dunlop1-Jul-21 6:44
Alex Dunlop1-Jul-21 6:44 
AnswerRe: How to add frame and Label controls at the same time by clicking a button in Xamarin? Pin
Gerry Schmitz1-Jul-21 7:20
mveGerry Schmitz1-Jul-21 7:20 
GeneralRe: How to add frame and Label controls at the same time by clicking a button in Xamarin? Pin
Alex Dunlop1-Jul-21 7:27
Alex Dunlop1-Jul-21 7:27 
Questionshow the Name of ID datagridView cell0 to cell1 Pin
remiki1-Jul-21 0:21
remiki1-Jul-21 0:21 
hi, i have a datagridview where i get the Ids and the amount in the first and second column,
but the third column should show me a function code for example compared to the
C#
dataGridView2.Rows [dvd] .Cells [0] .Value //of the first collone

but, it displays them to me at the bottom instead of that evening on the same line


but, it displays them to me at the bottom instead of that evening on the same line
here is the code
C#
void gab2relik()
        {
            cnx = new SqlConnection(db.RXcon);
            try
            {
                cnx.Open();
            }
            catch
            {
                MessageBox.Show("Erreure lors de la Connexion");
            }
            if (dataGridView2.Rows.Count>0)
            {
                for (int dvd = 0; dvd < dataGridView2.Rows.Count; dvd++)
                {
                    
                    string ct = "select grade from fction inner join person on person.id= fction.id where  id ='" + dataGridView2.Rows[dvd].Cells[0].Value + "'";
                    commd222 = new SqlCommand(ct);
                    commd222.Connection = cnx;
                    try
                    {
                        SqlDataReader d = commd222.ExecuteReader();
                        d.Read();
                        DataGridViewRow Row = (DataGridViewRow)dataGridView2.Rows[0].Clone();
                        Row.Cells[2].Value = d["grade"].ToString();
                        d.Close();
                        dataGridView2.Rows.Add(Row);
                    }
                    catch (Exception tt)
                    {
                        MessageBox.Show(tt.Message.ToString());
                    }
                    finally
                    {

                    }
                }
            
           
            }


modified 1-Jul-21 6:33am.

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.