I have a extended datagrid, in which I am setting values
at a given cell in the grid using
grid[rowNo, colNo] = val;
The grid has NewRow creation set to false
But sometimes setting value at a existing row is adding
newrow in the grid, which is staying temporarily and when
we start any operation on grid it goes off.
The callstack when the new row is added goes like this
----
baseui.dll!
Viper.UI.Base.D ataGridEx.RMDat aGrid.RMDataGri d_ListChanged
(System.Object sender = {System.Data.Da taView},
System.Componen tModel.ListChan gedEventArgs e =
{System.Compone ntModel.ListCha ngedEventArgs}) Line 5208 C#
system.data.dll !System.Data.Da taView.OnListCh anged
(System.Compone ntModel.ListCha ngedEventArgs e =
{System.Compone ntModel.ListCha ngedEventArgs}) + 0x48 bytes
system.data.dll !
System.Data.Dat aView.IndexList Changed(System. Object sender
= {System.Data.In dex},
System.Componen tModel.ListChan gedEventArgs e =
{System.Compone ntModel.ListCha ngedEventArgs}) + 0x43 bytes
system.data.dll !System.Data.Da taView.FireEven t
(System.Data.Ta rgetEvent targetEvent = IndexListChange d,
System.Object sender = {System.Data.In dex},
System.EventArg s e =
{System.Compone ntModel.ListCha ngedEventArgs}) + 0x4c bytes
system.data.dll !
System.Data.Dat aViewListener.I ndexListChanged
(System.Object sender = {System.Data.In dex},
System.Componen tModel.ListChan gedEventArgs e =
{System.Compone ntModel.ListCha ngedEventArgs}) + 0x3d bytes
system.data.dll !System.Data.In dex.OnListChang ed
(System.Compone ntModel.ListCha ngedEventArgs e =
{System.Compone ntModel.ListCha ngedEventArgs}) + 0x28 bytes
system.data.dll !
System.Data.Ind ex.RecordStateC hanged(int oldRecord = 15,
System.Data.Dat aViewRowState oldOldState = Unchanged,
System.Data.Dat aViewRowState oldNewState =
ModifiedOrigina l, int newRecord = 13,
System.Data.Dat aViewRowState newOldState = None,
System.Data.Dat aViewRowState newNewState =
ModifiedCurrent ) + 0x1ed bytes
system.data.dll !
System.Data.Dat aTable.RecordSt ateChanged(int record1 = 15,
System.Data.Dat aViewRowState oldState1 = Unchanged,
System.Data.Dat aViewRowState newState1 = ModifiedOrigina l,
int record2 = 13, System.Data.Dat aViewRowState oldState2 =
None, System.Data.Dat aViewRowState newState2 =
ModifiedCurrent ) + 0x83 bytes
system.data.dll !System.Data.Da taTable.SetNewR ecord
(System.Data.Da taRow row = {System.Data.Da taRow}, int
proposedRecord = 13, System.Data.Dat aRowAction action =
Change, bool isInMerge = false) + 0x22c bytes
system.data.dll !System.Data.Da taRow.SetNewRec ord
(int record = 13) + 0x26 bytes
system.data.dll !System.Data.Da taRow.EndEdit() +
0x3d bytes
system.data.dll !System.Data.Da taRowView.EndEd it()
+ 0x35 bytes
system.windows. forms.dll!
System.Windows. Forms.CurrencyM anager.EndCurre ntEdit() +
0x76 bytes
system.windows. forms.dll!
System.Windows. Forms.CurrencyM anager.ChangeRe cordState(int
newPosition = 1, bool validating = true, bool
endCurrentEdit = true, bool firePositionCha nge = true,
bool pullData = false) + 0xf4 bytes
system.windows. forms.dll!
System.Windows. Forms.CurrencyM anager.set_Posi tion(int
value = 1) + 0x56 bytes
system.windows. forms.dll!
System.Windows. Forms.DataGrid. set_Item(int rowIndex = 1,
int columnIndex = 3, System.Object value = {0.0}) + 0xd7
bytes
baseui.dll!
Viper.UI.Base.D ataGridEx.RMDat aGrid.SetValue( int row = 1,
int col = 3, System.Object val = {0.0}) Line 4270 C#
Can anybody help me how to sort out this one.
Thanks,
Shravan.