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.

Regd--HitTestInfo

Thread ID:

Created:

Updated:

Platform:

Replies:

34982 Sep 20,2005 11:54 AM Sep 22,2005 05:13 AM Windows Forms 6
loading
Tags: GridControl
manohar
Asked On September 20, 2005 11:54 AM

Hi There, can anyone tell me what is the equivalent of "HitTestInfo" in sysnfusion''s grid. Cheers, Manohar.

Administrator [Syncfusion]
Replied On September 21, 2005 02:57 AM

Hi Manohar you can make use of the following Point pt ; this.gridGroupingControl1.TableControl.PointToRowCol(pt,out rowIndex,out colindex); Console.Writeline(rowIndex); Console.Writeline(colIndex); Best Regards Mouli.

manohar
Replied On September 21, 2005 03:10 AM

Hi Mouli, I am using GridDataBoundGrid, so tablecontrol is not available in that.Kindly advice some other solution as early as possible. Thanks in advance, Thanks & Regards, Manohar

Administrator [Syncfusion]
Replied On September 21, 2005 06:32 AM

Hi Mano you can use this for GridDataBoundGrid this.gridDataBoundGrid1.PointToRowCol(); Best Regards Mouli.

manohar
Replied On September 21, 2005 06:41 AM

Hi Mouli, Thanks a lot, I have fixed my problem. I have one more question for you,if I try to select three and a half words in "richtextcell" of "Griddataboundgrid",either it is impossible sometimes or it is difficult.Try selecting and give me some solution for that. Regards, Manohar. >Hi There, > > can anyone tell me what is the equivalent of "HitTestInfo" in sysnfusion''s grid. > >Cheers, >Manohar.

Administrator [Syncfusion]
Replied On September 21, 2005 08:50 AM

Hi Manohar, For RichText CellType, Grid uses WindowsForm''''s RichTextBox internally. By default, RichTextBox.AutoWordSelection is set to true. You set that to false. Here is the code that works in the shipping sample - Windows\Grid.Windows\samples\CellTypes\RichTextCells. GridRichTextBoxCellRenderer renderer = (GridRichTextBoxCellRenderer) this.gridControl1.CellRenderers["RichText"]; GridRichTextEntryPanel panel = renderer.DropDownContainer.Controls[0] as GridRichTextEntryPanel; panel.RichTextBox.AutoWordSelection = false; If this is not answering your issue, please send us a sample with the issue. Best Regards, Mouli.

manohar
Replied On September 22, 2005 05:13 AM

Hi Mouli, Unfortunatley it didn''t solve my problem.As I cant''t make an executing sample I am sending two class files(DBGrid.cs,RichTextBox.cs) in a project file.DBGrid is the place where I am setting sytleinfo of each cell to one particular type like static cell,richtext cell,decimal cell etc.In RichTextBox.cs, in the constructor i have written the stmt "this.AutoWordSelection = false". Hope you can suggest me another solution after analysing the sample. Thanks in advance, Cheers, Manohar. SelectionPb_204.zip SelectionPb_8445.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.

;