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

C#

 
QuestionOutlook Issue. Newbie Question Pin
kruegersck18-Sep-08 17:33
kruegersck18-Sep-08 17:33 
QuestionFIB Pin
Miss_hacker18-Sep-08 16:09
Miss_hacker18-Sep-08 16:09 
QuestionCan i write a small plugin for Internet Explorer in .Net ? Pin
SWSDEV18-Sep-08 14:28
SWSDEV18-Sep-08 14:28 
QuestionCrystal Reports Help Pin
Alldaypilot18-Sep-08 14:10
Alldaypilot18-Sep-08 14:10 
QuestionRead already opened file Pin
srabik18-Sep-08 13:27
srabik18-Sep-08 13:27 
AnswerRe: Read already opened file Pin
Guffa18-Sep-08 21:20
Guffa18-Sep-08 21:20 
GeneralRe: Read already opened file Pin
srabik20-Sep-08 3:48
srabik20-Sep-08 3:48 
QuestionMouseMove in a container [modified] Pin
Rafone18-Sep-08 13:05
Rafone18-Sep-08 13:05 
AnswerRe: MouseMove in a container Pin
Ajay.k_Singh18-Sep-08 19:51
Ajay.k_Singh18-Sep-08 19:51 
GeneralRe: MouseMove in a container Pin
Rafone19-Sep-08 2:33
Rafone19-Sep-08 2:33 
GeneralRe: MouseMove in a container Pin
Ajay.k_Singh19-Sep-08 3:31
Ajay.k_Singh19-Sep-08 3:31 
GeneralRe: MouseMove in a container Pin
Rafone19-Sep-08 5:31
Rafone19-Sep-08 5:31 
AnswerRe: MouseMove in a container Pin
Rafone19-Sep-08 6:50
Rafone19-Sep-08 6:50 
QuestionCan a template parameter be restricted to primitive types? Pin
HosamAly18-Sep-08 11:24
HosamAly18-Sep-08 11:24 
AnswerRe: Can a template parameter be restricted to primitive types? Pin
Pete O'Hanlon18-Sep-08 11:31
mvePete O'Hanlon18-Sep-08 11:31 
GeneralRe: Can a template parameter be restricted to primitive types? Pin
HosamAly19-Sep-08 23:38
HosamAly19-Sep-08 23:38 
QuestionConcatenation or Data Type problem :s Pin
Muammar©18-Sep-08 11:11
Muammar©18-Sep-08 11:11 
AnswerRe: Concatenation or Data Type problem :s Pin
Mbah Dhaim18-Sep-08 12:54
Mbah Dhaim18-Sep-08 12:54 
i've tried your code but no error found

here my code
private DataTable CreateDataTable()
        {
            DataTable result = new DataTable();
            result.Columns.AddRange(new DataColumn[]{new DataColumn("ID", typeof(int)), new DataColumn("NAME")});
            return result;
        }

        public List<string[]> CreateList()
        {
            List<string[]> result = new List<string[]>();
            for (int i = 0; i < 100; i++)
            {
                string[] data = new string[] { string.Format("{0}", i + 1), string.Format("data_{0}", i + 1) };
                result.Add(data);
            }
            return result;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            DataTable dtb = CreateDataTable();
            List<string[]> result = CreateList();
            for (int i = 0; i < result.Count; i++)
            {
                dtb.Rows.Add(result[i]);
            }
            dataGridView1.DataSource = dtb;
            try
            {
                string strExpression = "ID = 1";
                DataRow[] dr = dtb.Select(strExpression);                 MessageBox.Show(dr[0].ToString());
            }
            catch (Exception ex)
            {

                MessageBox.Show(ex.Message);
            }
        }


D'Oh! | :doh:

dhaim
programming is a hobby that make some money as side effect Smile | :)

GeneralRe: Concatenation or Data Type problem :s Pin
Muammar©18-Sep-08 23:06
Muammar©18-Sep-08 23:06 
QuestionProblems connecting to excel with c# 2005 over windows2000 Pin
R.A.C18-Sep-08 10:05
R.A.C18-Sep-08 10:05 
AnswerRe: Problems connecting to excel with c# 2005 over windows2000 Pin
Paul Conrad18-Sep-08 10:27
professionalPaul Conrad18-Sep-08 10:27 
GeneralRe: Problems connecting to excel with c# 2005 over windows2000 Pin
R.A.C18-Sep-08 12:10
R.A.C18-Sep-08 12:10 
GeneralRe: Problems connecting to excel with c# 2005 over windows2000 Pin
Paul Conrad18-Sep-08 12:20
professionalPaul Conrad18-Sep-08 12:20 
QuestionWho can help ? Pin
Mohammad Dayyan18-Sep-08 10:03
Mohammad Dayyan18-Sep-08 10:03 
AnswerRe: Who can help ? Pin
Giorgi Dalakishvili18-Sep-08 10:14
mentorGiorgi Dalakishvili18-Sep-08 10:14 

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.