473,396 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Operation is not valid because it results in a reentrant call to the SetCurrentCellAd

Expand|Select|Wrap|Line Numbers
  1. private void FlexGrdRsltConv_CellEnter(object sender, DataGridViewCellEventArgs e)
  2.  
  3.              {
  4.  
  5.                  if (blnRowenter) { return;}
  6.  
  7.                  if (FlexGrdRsltConv.Columns[e.ColumnIndex].Name == "TxtEltCode")
  8.                  {
  9.  
  10.                      DataGridViewComboBoxCell RowComboColumn = new DataGridViewComboBoxCell();
  11.                      RowComboColumn.DisplayMember = "elmnt_cd";
  12.                      RowComboColumn.ValueMember = "elmnt_id";
  13.                      RowComboColumn.DataSource = DSVstPrdct.Tables[0];
  14.  
  15.  
  16.  
  17.                          FlexGrdRsltConv.Rows[e.RowIndex].Cells[e.ColumnIndex]   = RowComboColumn;
  18.                          }
  19. }
I am adding the combobox to datagridview.

on change of row the combox is added on new row and at the old row the combox is removed.

on addition of three new row the combox get added but as the fourth row is added it gives the error

"Operation is not valid because it results in a reentrant call to the SetCurrentCellAddressCore function."

where the e.RowIndex and e.ColumnIndex is same as = 3.

pls find the solution as soon as possible.
Sep 15 '08 #1
0 4218

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: lawrence | last post by:
I posted before, but have now narrowed my problem down to this method. At the start of the method, I test to make sure that I have a resource, a pointer to data returned from a database. This test...
2
by: Adrian Parker | last post by:
For some reason when I call validateFields before .Update (see below), I get this error: "Consumer's even handler called a non-reentrant method in the provider" However if I comment out the...
6
by: junky_fellow | last post by:
what are reentrant functions? What are the characteristics of a reentrant code ? what things should be kept in mind while writing a reentrant code ?
1
by: Martin B | last post by:
Hallo to everyone! Problem: -------- GridView Exception: reentrant call to the SetCurrentCellAddressCore function System: ------- WinXP Professional, english, .NET Framework 2.0 Beta...
2
by: TheOne | last post by:
Would anyone please point me to a list of reentrant GNU C/C++ library functions? I have searched a lot on the web for it but without any success. Man page of signal(2) has listed system calls...
0
by: news.microsoft.com | last post by:
I got this error when i bind dataview to datagridview data.Datasource= dt.DataView Error: Operation is not valid because it results in a reentrant call to the SetCurrentCellAddressCore function...
17
by: fmassei | last post by:
Dear all, I'm trying to put some old code in a portable, cross-platform library and I'm facing a big problem: is there a standard, platform- independent way to write a reentrant function that...
12
by: Bit Byte | last post by:
I am modifying some legacy code, to make the functions reentrant. I use lots of global data (large nested structs) to pass data around quicky. The global structures are far too large (in size) for...
5
by: Ion | last post by:
Hi, I get SQL0746N when trying to call stored procedure. In my particular case I the message complains about operation "READ", but I'm posting a simplified version that results in SQL0746N with...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.