Click here to Skip to main content
15,939,853 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to increase filtering speed in DataGridView? Pin
Gerry Schmitz31-May-21 7:30
mveGerry Schmitz31-May-21 7:30 
QuestionPluginLoader with GtkSharp 3.22.x Pin
Jens Eckervogt 25-May-21 23:22
Jens Eckervogt 25-May-21 23:22 
AnswerRe: PluginLoader with GtkSharp 3.22.x Pin
OriginalGriff25-May-21 23:40
mveOriginalGriff25-May-21 23:40 
QuestionMultidimensional Arrays error in fill IList Interface Pin
michael nabil21-May-21 7:57
michael nabil21-May-21 7:57 
AnswerRe: Multidimensional Arrays error in fill IList Interface Pin
Dave Kreskowiak21-May-21 8:12
mveDave Kreskowiak21-May-21 8:12 
GeneralRe: Multidimensional Arrays error in fill IList Interface Pin
michael nabil21-May-21 9:09
michael nabil21-May-21 9:09 
GeneralRe: Multidimensional Arrays error in fill IList Interface Pin
Dave Kreskowiak21-May-21 9:43
mveDave Kreskowiak21-May-21 9:43 
GeneralRe: Multidimensional Arrays error in fill IList Interface Pin
michael nabil21-May-21 10:03
michael nabil21-May-21 10:03 
You're absolutely right but I'm trying code and my problem isn't with grid view but my problem is with
how to fill invoicelines right
i try another way to show invoicelines in listBox1 and run good
string[,] datavalu = new string[dataGridView1.Rows.Count, dataGridView1.Columns.Count];

            foreach(DataGridViewRow row in dataGridView1.Rows)
            {


                foreach (DataGridViewColumn col in dataGridView1.Columns)
                {
                    datavalu[row.Index, col.Index] = dataGridView1.Rows[row.Index].Cells[col.Index].Value.ToString();

                }
            }
            int i = 0;

            foreach(string ss in datavalu)
            {

                listBox1.Items.Add(ss);
                i++;
            }

rustle


after that i change code to this but run wrong
for ( i = 0; i < datavalu.GetLength(0); i++)
            {

                invoiceline2.description = datavalu[i, 0].ToString();
                invoiceline2.itemType = datavalu[i, 1].ToString();
                invoiceline2.itemCode = datavalu[i, 2].ToString();
                invoiceline2.internalCode = datavalu[i, 3].ToString();
                invoiceline2.unitType = datavalu[i, 4].ToString();
                invoiceline2.quantity = int.Parse(datavalu[i, 5].ToString());

                invoicelines.Add(invoiceline);
                
                
            }


some thing i miss can you help me
AnswerRe: Multidimensional Arrays error in fill IList Interface Pin
OriginalGriff21-May-21 8:21
mveOriginalGriff21-May-21 8:21 
GeneralRe: Multidimensional Arrays error in fill IList Interface Pin
michael nabil21-May-21 8:35
michael nabil21-May-21 8:35 
GeneralRe: Multidimensional Arrays error in fill IList Interface Pin
Richard Andrew x6421-May-21 9:06
professionalRichard Andrew x6421-May-21 9:06 
GeneralRe: Multidimensional Arrays error in fill IList Interface Pin
OriginalGriff21-May-21 9:13
mveOriginalGriff21-May-21 9:13 
GeneralRe: Multidimensional Arrays error in fill IList Interface Pin
Gerry Schmitz21-May-21 9:02
mveGerry Schmitz21-May-21 9:02 
GeneralRe: Multidimensional Arrays error in fill IList Interface Pin
michael nabil21-May-21 9:29
michael nabil21-May-21 9:29 
GeneralRe: Multidimensional Arrays error in fill IList Interface Pin
OriginalGriff21-May-21 9:56
mveOriginalGriff21-May-21 9:56 
GeneralRe: Multidimensional Arrays error in fill IList Interface Pin
michael nabil21-May-21 10:05
michael nabil21-May-21 10:05 
GeneralRe: Multidimensional Arrays error in fill IList Interface Pin
OriginalGriff21-May-21 10:31
mveOriginalGriff21-May-21 10:31 
GeneralRe: Multidimensional Arrays error in fill IList Interface Pin
michael nabil21-May-21 10:55
michael nabil21-May-21 10:55 
GeneralRe: Multidimensional Arrays error in fill IList Interface Pin
OriginalGriff21-May-21 11:38
mveOriginalGriff21-May-21 11:38 
GeneralRe: Multidimensional Arrays error in fill IList Interface Pin
michael nabil22-May-21 9:53
michael nabil22-May-21 9:53 
GeneralRe: Multidimensional Arrays error in fill IList Interface Pin
OriginalGriff22-May-21 10:01
mveOriginalGriff22-May-21 10:01 
AnswerRe: Multidimensional Arrays error in fill IList Interface Pin
Eddy Vluggen21-May-21 12:01
professionalEddy Vluggen21-May-21 12:01 
QuestionWhy dictionary puts data inside [] mark? Pin
Alex Dunlop19-May-21 20:26
Alex Dunlop19-May-21 20:26 
QuestionRe: Why dictionary puts data inside [] mark? Pin
Richard MacCutchan19-May-21 21:00
mveRichard MacCutchan19-May-21 21:00 
AnswerRe: Why dictionary puts data inside [] mark? Pin
Alex Dunlop19-May-21 21:04
Alex Dunlop19-May-21 21:04 

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.