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

FilterBar with DropDownGrid

Thread ID:





6751 Aug 26,2003 01:20 PM UTC Aug 26,2003 03:58 PM UTC WinForms 1
Tags: GridControl
scot adams
Asked On August 26, 2003 01:20 PM UTC

I'm creating a number of dropgrids inside a loop. I'm having trouble attaching a filter bar to these grids. If I try to wire it in this loop, the form won't display, and if I try to wire during the currentcellshowingdrop down I get an error saying the col index is out of range. //CreateGrid GridDataBoundGrid dropGrid = new GridDataBoundGrid(); dropGrid.DataSource = valueTable; dropGrid.ThemesEnabled = true; dropGrid.EnableAddNew = false; dropGrid.EnableEdit = false; .... // Create and register dropdown grid cells DropDownGridCellModel cellModel = new DropDownGridCellModel(this.gridAttributes.Model); cellModel.EmbeddedGrid = dropGrid; string name = "Grid" + gridrow + "DropCell"; ... this.gridAttributes[gridrow,2].CellType = name;

Administrator [Syncfusion]
Replied On August 26, 2003 03:58 PM UTC

Is gridAttributes a GridControl or a GridDataBoundGrid? If it is a GridDataBoundGrid, then you cannot use indexers ( this.gridAttributes[gridrow,2].CellType) to set cell properties other than Text or CellValue. Are things working OK without the GridFilterBar? I would probably try wiring things in CurrentCellShowingDropDown. Can you post the code you were trying to use? If the colindex was out of range, what value did it have? Were you getting it from grid.CurrentCell.ColIndex?


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