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
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()));
}
}
Same error on beta version.
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.
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.
Please login first to submit.