By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,910 Members | 1,694 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,910 IT Pros & Developers. It's quick & easy.

Grid value setting at a existing cell adding new unwanted row

P: n/a
Hi,
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.DataGridEx.RMDataGrid.RMDataGrid_Lis tChanged
(System.Object sender = {System.Data.DataView},
System.ComponentModel.ListChangedEventArgs e =
{System.ComponentModel.ListChangedEventArgs}) Line 5208 C#
system.data.dll!System.Data.DataView.OnListChanged
(System.ComponentModel.ListChangedEventArgs e =
{System.ComponentModel.ListChangedEventArgs}) + 0x48 bytes

system.data.dll!
System.Data.DataView.IndexListChanged(System.Objec t sender
= {System.Data.Index},
System.ComponentModel.ListChangedEventArgs e =
{System.ComponentModel.ListChangedEventArgs}) + 0x43 bytes

system.data.dll!System.Data.DataView.FireEvent
(System.Data.TargetEvent targetEvent = IndexListChanged,
System.Object sender = {System.Data.Index},
System.EventArgs e =
{System.ComponentModel.ListChangedEventArgs}) + 0x4c bytes

system.data.dll!
System.Data.DataViewListener.IndexListChanged
(System.Object sender = {System.Data.Index},
System.ComponentModel.ListChangedEventArgs e =
{System.ComponentModel.ListChangedEventArgs}) + 0x3d bytes

system.data.dll!System.Data.Index.OnListChanged
(System.ComponentModel.ListChangedEventArgs e =
{System.ComponentModel.ListChangedEventArgs}) + 0x28 bytes

system.data.dll!
System.Data.Index.RecordStateChanged(int oldRecord = 15,
System.Data.DataViewRowState oldOldState = Unchanged,
System.Data.DataViewRowState oldNewState =
ModifiedOriginal, int newRecord = 13,
System.Data.DataViewRowState newOldState = None,
System.Data.DataViewRowState newNewState =
ModifiedCurrent) + 0x1ed bytes
system.data.dll!
System.Data.DataTable.RecordStateChanged(int record1 = 15,
System.Data.DataViewRowState oldState1 = Unchanged,
System.Data.DataViewRowState newState1 = ModifiedOriginal,
int record2 = 13, System.Data.DataViewRowState oldState2 =
None, System.Data.DataViewRowState newState2 =
ModifiedCurrent) + 0x83 bytes
system.data.dll!System.Data.DataTable.SetNewRecord
(System.Data.DataRow row = {System.Data.DataRow}, int
proposedRecord = 13, System.Data.DataRowAction action =
Change, bool isInMerge = false) + 0x22c bytes
system.data.dll!System.Data.DataRow.SetNewRecord
(int record = 13) + 0x26 bytes
system.data.dll!System.Data.DataRow.EndEdit() +
0x3d bytes
system.data.dll!System.Data.DataRowView.EndEdit()
+ 0x35 bytes
system.windows.forms.dll!
System.Windows.Forms.CurrencyManager.EndCurrentEdi t() +
0x76 bytes
system.windows.forms.dll!
System.Windows.Forms.CurrencyManager.ChangeRecordS tate(int
newPosition = 1, bool validating = true, bool
endCurrentEdit = true, bool firePositionChange = true,
bool pullData = false) + 0xf4 bytes
system.windows.forms.dll!
System.Windows.Forms.CurrencyManager.set_Position( 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.DataGridEx.RMDataGrid.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.
Nov 15 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.