473,549 Members | 2,670 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Grid value setting at a existing cell adding new unwanted row

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.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.
Nov 15 '05 #1
0 1569

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2023
by: margetts | last post by:
Hey there, just wondering if there are any built-in grid controls or what people use. N.B below isnt correct code (obviously) its just my mental interpretation so you guys can understand easier My purpose is a game, i need a grid about 12x12 'cells', i need to be able to apply code to each 'cell' for the purpose of adding text, and...
0
1940
by: scottmallory | last post by:
Greetings, I am new to Python...and I am having some difficulty updating a grid (wx.grid.PyGridTableBase). Everything works just fine (adding /deleting/ resizing rows, cols) except updating individual cells. I am using the grids to display data from a database (which is working fine), I am trying to use the SetValue (as well as self.data =...
2
2146
by: joltman | last post by:
OK, this is kind of hard to explain, so I'll do my best: I have a form where I have a row where there could be multiple entries, so I have a link where it will dynamically add another row like it, and this can happen as many times as you click on the link. This row consists of 2 drop-down boxes. Depending on the selection of the first...
2
2207
by: TadPole | last post by:
Hi all, My main problems are::::::::: 1. Set a value within a block container that can be used and changed by subsequent templates/block-containers/tables etc.. 2. get/determine/find the setting that tell the process that the new top of the document region is now at the end of the last block-container used, this must be set in that last...
6
1716
by: Jesse Aufiero | last post by:
I was wondering if anyone knows how to get a datagrid to size as the browser is resized such that the datagrid's borders would appear anchored to the browser edges. The datagrid should have a white-space border around it and scrollbars should automatically appear on the datagrid should the contents of the grid spill outside of the viewable...
1
4925
by: Mad Scientist Jr | last post by:
can someone explain how to simply populate a grid in .net ? the way i understand it, there is no more msflexgrid, and instead is this new control that has to be tied to a dataset, and it is a real pain to work with if you just want to throw some values in a grid and edit them with a textbox. i don't want to persist anything in a database, i...
3
1881
by: Tony Johansson | last post by:
Hello!! We are using .NET C# so the product must use this language. The existing controls within .NET is not good enough so I'm looking and evaluating other products. We need a product to use when we create our advanced grid. We use .NET win forms with C#
117
18433
by: phil-news-nospam | last post by:
Is there really any advantage to using DIV elements with float style properies, vs. the old method of TABLE and TR and TD? I'm finding that by using DIV, it still involves the same number of elements in the HTML to get everything just right. When you consider the class attribute on the DIV elements, there's not much size savings anymore...
1
4144
by: Kiran | last post by:
Hello All, I created a grid, where I register events every time the user changes an existing value inside the grid control. Right now, I am using the event: EVT_GRID_CELL_CHANGE. However, I realized that I need to register that same kind of event even if the user doesnt change the value, but just selects and then deselects. I tried...
0
7451
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7720
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7959
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7473
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6044
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5369
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5088
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3501
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1944
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.