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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Last row anomalies in DataGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

1150 Sep 26,2002 09:03 PM UTC Oct 8,2002 09:24 AM UTC WinForms 2
loading
Tags: FAQ
Frank
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.

Brocky
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

CONFIRMATION

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.

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

;