Click here to Skip to main content
15,889,116 members
Home / Discussions / C#
   

C#

 
QuestionConverting Pixel to twips Pin
jojoba201121-Apr-10 7:01
jojoba201121-Apr-10 7:01 
AnswerRe: Converting Pixel to twips Pin
Henry Minute21-Apr-10 7:17
Henry Minute21-Apr-10 7:17 
GeneralRe: Converting Pixel to twips Pin
Not Active21-Apr-10 13:00
mentorNot Active21-Apr-10 13:00 
GeneralRe: Converting Pixel to twips Pin
Dan Mos21-Apr-10 13:15
Dan Mos21-Apr-10 13:15 
AnswerRe: Converting Pixel to twips Pin
Luc Pattyn21-Apr-10 7:48
sitebuilderLuc Pattyn21-Apr-10 7:48 
QuestionCreating a checklist using checkbox tool in csharp smart device project Pin
Tunisien8621-Apr-10 6:06
Tunisien8621-Apr-10 6:06 
AnswerRe: Creating a checklist using checkbox tool in csharp smart device project Pin
Tarakeshwar Reddy21-Apr-10 9:04
professionalTarakeshwar Reddy21-Apr-10 9:04 
GeneralRe: Creating a checklist using checkbox tool in csharp smart device project Pin
Tunisien8621-Apr-10 22:53
Tunisien8621-Apr-10 22:53 
Hi,
Thanks Reddy,the errors disappears all with some corrections:
foreach (DataRow da in ds.Tables[0].Rows)
            {
                string s = da[0].ToString();}

.I want now to add every row it found after executing the select request:
command1.CommandText = "Select NoEtape, Etape from Action where TypeTravail=@typ ";

I create a listview and I wanna add like items every result of the select.I modify my code in his end like this:
............
foreach (DataRow dataRow in dat.Tables[0].Rows)
                    {
                        ListViewItem item = new ListViewItem();
                        item.Text = dataRow[0].ToString();
                        listView1.Items.Add(item);
                        System.Console.WriteLine(dataRow[0]);
                    }


                    
                }
                else MessageBox.Show("Veuillez saisir un autre NBT");
            }
            adapter.Dispose();
            sqlceconn.Dispose();
            command.Dispose();

        }


    }

But this modification doesn't show any thing in the listviewitem.
Thanks a lot for u suggestions
Cry | :((
GeneralRe: Creating a checklist using checkbox tool in csharp smart device project Pin
Tarakeshwar Reddy22-Apr-10 6:23
professionalTarakeshwar Reddy22-Apr-10 6:23 
AnswerRe: Creating a checklist using checkbox tool in csharp smart device project Pin
Tunisien8622-Apr-10 6:27
Tunisien8622-Apr-10 6:27 
QuestionHow to pad a string with zeroes Pin
jkpieters21-Apr-10 4:41
jkpieters21-Apr-10 4:41 
AnswerRe: How to pad a string with zeroes Pin
OriginalGriff21-Apr-10 4:51
mveOriginalGriff21-Apr-10 4:51 
GeneralRe: How to pad a string with zeroes Pin
jkpieters21-Apr-10 4:58
jkpieters21-Apr-10 4:58 
GeneralRe: How to pad a string with zeroes Pin
OriginalGriff21-Apr-10 5:15
mveOriginalGriff21-Apr-10 5:15 
GeneralRe: How to pad a string with zeroes Pin
PIEBALDconsult21-Apr-10 6:00
mvePIEBALDconsult21-Apr-10 6:00 
GeneralRe: How to pad a string with zeroes Pin
OriginalGriff21-Apr-10 6:07
mveOriginalGriff21-Apr-10 6:07 
GeneralRe: How to pad a string with zeroes Pin
PIEBALDconsult21-Apr-10 6:17
mvePIEBALDconsult21-Apr-10 6:17 
GeneralRe: How to pad a string with zeroes Pin
OriginalGriff21-Apr-10 6:24
mveOriginalGriff21-Apr-10 6:24 
AnswerRe: How to pad a string with zeroes [modified] Pin
PIEBALDconsult21-Apr-10 5:00
mvePIEBALDconsult21-Apr-10 5:00 
AnswerRe: How to pad a string with zeroes Pin
OkkiePepernoot21-Apr-10 5:29
OkkiePepernoot21-Apr-10 5:29 
AnswerRe: How to pad a string with zeroes Pin
Luc Pattyn21-Apr-10 6:33
sitebuilderLuc Pattyn21-Apr-10 6:33 
GeneralRe: How to pad a string with zeroes Pin
PIEBALDconsult21-Apr-10 7:50
mvePIEBALDconsult21-Apr-10 7:50 
GeneralRe: How to pad a string with zeroes Pin
Luc Pattyn21-Apr-10 7:57
sitebuilderLuc Pattyn21-Apr-10 7:57 
GeneralRe: How to pad a string with zeroes Pin
PIEBALDconsult21-Apr-10 8:02
mvePIEBALDconsult21-Apr-10 8:02 
Questionwrite in a textbox Pin
Member 216810321-Apr-10 4:41
Member 216810321-Apr-10 4:41 

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.