Wisej Beta Grid error

0
0

When ı set grid data source a linq list , it is give error

 

 

Attachment
  • You must to post comments
0
0

Hi,

can you please contact me at frankATicetegroup.com to further track down that issue?
Tried sending you a mail but it just bounced back.

Thanks in advance!

Best regards
Frank

  • You must to post comments
0
0

I am find it error blog

 

foreach (DataGridViewRow element in dataGridView1.Rows)
{
if (element.Cells[“IHB_RENK_KODU”].Value.ToString() == “”)
{
element.Cells[“IHB_DURUM_TIPLERI”].Style.BackColor = Color.White;
}
else
{
element.Cells[“IHB_DURUM_TIPLERI”].Style.BackColor = Color.FromArgb(Convert.ToInt32(element.Cells[“IHB_RENK_KODU”].Value.ToString()));
}
}

  • HSoft
    • HSoft
    • Sep 16, 2020 - 12:37 am
    This also error continous 2.2.3 v
  • Luca (ITG)
    2.2.3 still had the error. The latest beta is 2.2.4 I believe.
  • You must to post comments
0
0

Same error on beta version.

  • Luca (ITG)
    Can you pinpoint the line that broke in CargoV4 DataBindingComplete?
  • HSoft
    • HSoft
    • Sep 15, 2020 - 2:14 pm
    And this blog give error on beta version private void Bolgecirotoplamgrid_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e) { decimal bolgecirotoplamtutar = bolgecirotoplamgrid.Rows.Cast() .Sum(t => Convert.ToDecimal(t.Cells[“cirotoplambolge”].Value)); }
  • Luca (ITG)
    I tried that too. What exactly is the beta version you are using? Maybe the fix I mentioned didn’t make it in there.
  • Luca (ITG)
    BTW, there is no need to use Cast(), the DataGridView collections in Wisej are already typed.
  • HSoft
    • HSoft
    • Sep 16, 2020 - 12:35 am
    I use 2.2.3v but error continous
  • You must to post comments
0
0

One of the main changes in 2.2 is that rows are virtual and created on demand. The rows enumeration did return null for rows not created.

All tests with ToList() and enumerations now work well. Can you send the row where the exception is raised? In VS use Debug->Windows->Exception Settings enable Common Language Runtime Exceptions.

 

  • You must to post comments
0
0

The exception is coming from your app in the handler of DataBindingComplete, it’s shown in the stack trace.

LINQ’s ToList() returns a normal list:

this.dataGridView1.DataSource = data.OrderBy(d => d.Name).ThenByDescending(d=>d.Name).ToList();

Is identical to assigning a list. Just tried many variations without issues.

 

  • HSoft
    • HSoft
    • Sep 15, 2020 - 1:57 pm
    Hi luca 2.1.88 no problem but last beta version give error , what’s the difference between these two versions?
  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.