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.
Unfortunately, activation email could not send to your email. Please try again.

Current Row Marker

Thread ID:

Created:

Updated:

Platform:

Replies:

35437 Sep 29,2005 10:39 AM Sep 30,2005 11:23 PM Windows Forms 3
loading
Tags: GridControl
Brian N. Wright
Asked On September 29, 2005 10:39 AM

I have a GridDataBoundGrid (3.2.1.0). I am attempting to clear the current cell when the grid is first loaded up by calling: this.gdbgBatches.CurrentCell.MoveTo(-1,-1); This seems to clear the current cell, but the first row still has the little arrow marker on the row header (which I believe indicates the current row). This makes it appear as though the current cell is on the first row when it fact it is not. Is there anyway to make this arrow go away when I clear the current cell? If it is of any interest why I am doing this.. I am actually setting up 2 grids in a master detail relationship. But I am manually retrieving the details only when they click on a row in the master grid because it is quite a bit of data. Therefore when the master grid first comes up.. I want it to show that no row is currently selected. Thanks.

Administrator [Syncfusion]
Replied On September 30, 2005 04:35 AM

Hi Brian You can make use of the PrepareViewStyleInfo event and can make the Row header of that particular row to be as "Header" . Here is the code. private void gridDataBoundGrid1_PrepareViewStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.GridPrepareViewStyleInfoEventArgs e) { if(e.ColIndex == 0 && e.RowIndex == 0) { this.gridDataBoundGrid1[1,0].CellType = "Header"; } } Best Regards Mouli.

Brian N. Wright
Replied On September 30, 2005 10:37 AM

Well I tried this code exactly as shown except I changed it to: this.gridDataBoundGrid1[2,0].CellType = "Header"; because I have a filter bar in row 1.. But I even tried changing it to make every cell in column 0 to be a "Header" but it still did not work. The problem with this solution, as far as I can tell, is that they are already headers. That is not the problem I described. My problem is that the little arrow marker (for lack of a better term), that shows up in the row header and that seems to indicate the row of the current cell, still shows up in the first row even when I clear out the current cell by calling: this.gridDataBoundGrid1.CurrentCell.MoveTo(-1,-1); How do I get rid of this "little arrow marker" on the row header? Thanks.

Administrator [Syncfusion]
Replied On September 30, 2005 11:23 PM

Here is a little sample shwoing one way to do this. You have to delay setting teh CurrentPostion to -1 for a little time after teh formload or the grid will reset it. http://www.syncfusion.com/Support/user/uploads/GDGB_Currency_4b2269ed.zip

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.

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.

;