I would like to add a hyperlink to a column's value so that I can navigate to another function in my app. Is this possible?
Thanks,Rod
I can't help you with the style, but as far as the CellClickAction is concerned you should do your processing asynchronously so the grid can do its SelectRecord processing first.
delegate void MyDelegate();
void xamDataGrid1_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new MyDelegate(ProcessMouseAsync));
}
private static void ProcessMouseAsync()
MessageBox.Show("Do Whatever");
Joe
It will provided you can tell me how to update the cell value sytle to look like a hyperlink. I have the following and I don't see any change in the color of the value.
Setter str = new Setter(CellValuePresenter.ForegroundProperty, Brushes.Blue);
fld.Settings.CellValuePresenterStyle = linkStyle;
fld.Label = "Model ID";
fl.Fields.Add(fld);
Also how is this going to work if I have this set...
theDataGrid.FieldSettings.CellClickAction = CellClickAction.SelectRecord;
I still want the record to be selected but I also what to navigate if they click on the it.
Thanks,
Rod
Did the 'Put a link into a cell?' (http://forums.infragistics.com/forums/p/2784/25540.aspx#25540) thread answer your question?