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

QueryCellInfo and GetRecordFromRow

Thread ID:





109603 Jun 23,2013 08:31 PM UTC Sep 10,2013 12:54 PM UTC WPF 4
Tags: GridControl
Asked On June 23, 2013 08:31 PM UTC

Hi all,

I'm using syncfusion GridDataControl and I need to set ToolTip for each row. 

I use Behavior<GridDataControl> and QueryCellInfo event. I get row by AssociatedObject.Model.Table.GetRecordFromRow(e.Cell.RowIndex) code. Everything was good before I group data by one of column. After I do this GetRecordFromRow stop to work. Some rows I can handle by this code

                        if (AssociatedObject.Model.Table.HasGroups)
                            rowIndex = e.Cell.RowIndex - 1;
But this workaround isn't help for all rows.

Replied On June 23, 2013 08:42 PM UTC

There are http://www.syncfusion.com/support/forums/grid-wpf/98774 same post but I'm not able to download example 

Rajasekar G [Syncfusion]
Replied On June 24, 2013 08:38 PM UTC

Hi Eugene, 

Thank you for contacting Syncfusion support.

 We have analayzed query and we are not able to understand your exact scenorio. So could you please share more details like in which value do you want to show in Tooltip for each row(Record  , Group caption row) .

 Please let us know if you have any questions. 



Replied On June 25, 2013 07:50 PM UTC

Hi Rajasekar,

I've attached sample. When I expanded groups I'm getting exception ArgumentOutException. Even if I wrap it by try catch It will ask only about last row as I can see from debugger. 

This code is working if I remove grouping. 

Eugene Zavgorodny.

Custom Grouping Demo_d213babc.zip

Saravanan M [Syncfusion]
Replied On September 10, 2013 12:54 PM UTC

Hi Eugene,

We have analyzed your issue, there is no corresponding record for the row index when you expand the row. It is the cause of exception. You can get the record by using Record API. You can refer the below codesnippet.


void OnQueryCellInfo(object sender, GridQueryCellInfoEventArgs e)


var style = e.Style as GridDataStyleInfo;

var data = style.CellIdentity;

var record = data.Record as Customers;



We have prepared a sample based on this. Please find the attached sample below.

Please let us know if you need further assistance.





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