Hi,
I am using infragistics ultrawingrid v 6.2 in my desktop application.
Loading the data from sql to grid. I am using the background thread to load the data in the grid due to large amount of data. While loading the problem i am facing are
on Grid_InitializeRow
int iIndex = e.Row.ListIndex + 1;
e.Row.Cells["INo"].Value = e.Row.ParentRow.Cells["INo"].Value.ToString() + "." + iIndex.ToString();
e.Row.RowSelectorAppearance.Reset();
e.Row.Update();
I can’t see anything wrong in this code
Getting Error:
Unable to update the row: value cannot be null, paramter name:Key
when I break the record and load the data into the grid , following error happens
Unable to update the row: DataTable internal index is corrupted: '5'
Unable to update the row:DataTable internal index is corrupted: '8'
Unable to update the row:Object reference not set to an instance of an object
i was tried to catch up the exception .. like try-catch in row. Grid_InitializeRow .. but that error is not catchable. and thowing exception are
at Infragistics.Win.UltraWinGrid.UltraGridCell.SetValue(Object value, Boolean suppressErrorMessagePrompt, Boolean fireInitializeRow, Boolean throwExceptionOnError)
at Infragistics.Win.UltraWinGrid.UltraGridCell.SetValue(Object value, Boolean suppressErrorMessagePrompt, Boolean fireInitializeRow)
at Infragistics.Win.UltraWinGrid.UltraGridCell.set_Value(Object value)
at Verdi.Client.Controls.Browser.ReportManager.ReportBase.Grid_InitializeRow(Object sender, InitializeRowEventArgs e)
can any one advice or help on above issue.
Thanks
Greetings
Srini
Hello,
I am just checking about the progress of this issue. Let me know If you need any further assistance on this matter?
Thank you for using Infragistics Components.
Hello ,
Is the underlying data column “INo” is marked as primary key and also is marked to be auto increment ? Could you please post a small sample which demonstrates your issue.
Also calling of e.Row.Update() is unnecessary in this event. More information about Update method you could find on the following link:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/Infragistics2.Win.UltraWinGrid.v11.1~Infragistics.Win.UltraWinGrid.UltraGridRow~Update%28%29.html
I am waiting for your feedback.