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

CellValue error

Thread ID:





10550 Feb 5,2004 12:49 PM UTC Feb 5,2004 02:07 PM UTC WinForms 2
Tags: GridControl
Steli Andrei
Asked On February 5, 2004 12:49 PM UTC

On my GridDataBoundGrid in some places, in the CurrentCellChanged event I was getting the new value in the cell by calling: Me.grid.Item(X, Y).CellValue, where X, Y where the RowIndex and ColIndex (this was in 1.5.0.x version) and I was getting a Text value. Now I''ve updated to 1.6.0.x) and all that code now errors out: instead of my Text value I do get a DataRowView object. Why this change ? Was the CellValue not suppose to be used ? or I was using it wrong. I know that I can get the cell value also with: me.grid.CurrentCell.Rendered....

Administrator [Syncfusion]
Replied On February 5, 2004 12:58 PM UTC

Does this cell contain a ComboBox ecll or a GridListControl cell? If so, you should check to make sure you have set the style.Displaymember and style.ValueMember properly. If the ValueMember is not correct, you will get a DataRowView object in this situation.

Steli Andrei
Replied On February 5, 2004 02:07 PM UTC

Yes, some bounded columns have a CellType of GridListControl but only the DisplayMember was set. The ValueMember wasn''t. But it works now. Also, the problem that I was having with: "Column ''ProductID'' does not belong to table Table" seems to be gone. Thank you !


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