We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Last row anomalies in DataGrid

Thread ID:





1150 Sep 26,2002 09:03 PM UTC Oct 8,2002 09:24 AM UTC WinForms 2
Tags: FAQ
Asked On September 26, 2002 09:03 PM UTC

Working with samples that implement a ComboBox in a DataGrid. Things work fine until the last (new) row. If you type in a TextBox field, a new row is added at the first keystroke. But if you use the ComboBox as the first field in the row, the results are not saved (the Commit function not called). Any ideas on how to repair this problem?

Administrator [Syncfusion]
Replied On October 4, 2002 09:31 AM UTC

I think the FAQ sample has been updated to handle this problem.

Replied On October 8, 2002 09:24 AM UTC

I had the same problem. I had to made a littel change in the coloumn style: protected override void Edit(System.Windows.Forms.CurrencyManager source, int rowNum, System.Drawing.Rectangle bounds, bool readOnly, string instantText, bool cellIsVisible) { //on very first pass, set this static member to number of items in tables if(_RowCount == -1) _RowCount = source.Count - 1; I added the "- 1" statement in the edit override. The problem only accurs whe u hit the first time the new colum


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon