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

Row header image

Thread ID:

Created:

Updated:

Platform:

Replies:

22494 Dec 14,2004 02:30 PM UTC Dec 14,2004 03:02 PM UTC WinForms 1
loading
Tags: GridControl
kstoj
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: http://64.78.18.34/Support/article.aspx?id=560 http://64.78.18.34/Support/article.aspx?id=10351 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.

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

;