Is there any way of getting the row value or cell value when the user mouse overs any row in XamDataGrid.
if so, can you please provide an example.
Thnx
Hello Tony,
Thank you for your post. I have been looking into it and I created a sample project for you using Peter’s suggestion and everything seems to work ok on my side with version 14.2. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.
Looking forward for your reply.
I am trying to use XamDataGrid Hover Event in my WPF VB application using NetAdvantage 14.2 but events are not occurring. Do you have an example for Targettype = CellValuePresenter or DataRecordPresenter. Has code changed since 2010 version of NetAdvantage?
Hello Rakesh,
Though the XamDataGrid doesn’t expose a built-in way of doing this, probably because it would decrease performance in larger applications, you can register for all the cell’s MouseEnter events by using a style like this one:
<Style TargetType="{x:Type igDP:CellValuePresenter}" >
<EventSetter Event="MouseEnter" Handler="CellValuePresenter_MouseEnter" />
</Style>
…
void CellValuePresenter_MouseEnter(object sender, MouseEventArgs e)
{
}
If by ”row value” you mean having acces to the DataRecord’s cell values you can use this style:
<Style TargetType="{x:Type igDP:DataRecordPresenter}">
<EventSetter Event="MouseEnter" Handler="DataRecordPresenter_MouseEnter" />
void DataRecordPresenter_MouseEnter(object sender, MouseEventArgs e)
Hope this is what you needed. Please let me know if you require any further assistance on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support