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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Problem with comboBox cell

Thread ID:





18113 Aug 24,2004 11:51 AM UTC Aug 24,2004 12:36 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On August 24, 2004 11:51 AM UTC

Hello, I try to display a combo box cell in a virtual grid. Here is the code I wrote in the QueryCellInfo procedure : if (e.ColIndex = 4) and (e.RowIndex = 1) then begin e.Style.CellType := ''ComboBox''; e.Style.ChoiceList := Fitems; e.Style.CellValue := ''one''; e.Style.ExclusiveChoiceList := true; end; FItems is a StringCollection that has been created in the create method of my form. When I execute my code, I see my comboBox with the right values in the dropdown list. But if I change the item selected among the dropdown list and then click elsewhere on the grid (on any other cell) I get the error message: ''Specified argument was out of the range of valide values. Parameter name: rowIndex''. Is there something wrong in what I have done ?? Thanks, Verane.

Administrator [Syncfusion]
Replied On August 24, 2004 12:36 PM UTC

What does your SaveCellInfo look like? Does it set e.Handled = true where you are trying to save this cell value to you external data source. Your QueryCellInfo would normally set either the e.Style.CellValue or the e.Style.Text from your external data source (and not always set it to "one").


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