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

Row header image

Thread ID:





22494 Dec 14,2004 02:30 PM UTC Dec 14,2004 03:02 PM UTC WinForms 1
Tags: GridControl
Asked On December 14, 2004 02:30 PM UTC

Hi! I have a GDBG with the row headers. When I select the row the header shows the right arrow image. In my program I''m selecting the row programatically at which point I would like to remove the previously displayed "selection arrow" from the header of the previously selected row. I thought this should be easy but no matter what I do the "selection arrow" is not removed. Here is what I already tried: DataGrid[k, 0].ImageIndex = -1; DataGrid[k, 0].CellType = "RowHeaderCell"; DataGrid[k, 0].CellAppearance = GridCellAppearance.Flat; DataGrid[k, 0].ResetImageIndex(); DataGrid[k, 0].ResetEnabled(); DataGrid[k, 0].ResetCellAppearance(); DataGrid[k, 0].ResetThemed(); DataGrid[k, 0].ResetInterior();

Administrator [Syncfusion]
Replied On December 14, 2004 03:02 PM UTC

You cannot set cell specific properties in a GridDataBoundGrid using an indexer. Instead, you need to use an event as discuessed in these KB''s: If you want to set the sample set of properties for teh whole column of row headers, then you can set them using this style object. this.gridControl1.BaseStylesMap["Row Header"].StyleInfo.CellAppearance = GridCellAppearance.Flat; But if you want to move the arrow selection indicator, then in addition to selecting the row (adding a row range to the grid.Selections collection), you should try either moving teh currentcell using grid.CurrentCell.MoveTo or setting the binder positon using grid.Binder.CurrentPosition. Both these actions will normally move the the header arrow.


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