So what I have is
ultraGrid1.DataSource = HL7;
ultraGrid1.Visible = true;
ultraGrid1.DisplayLayout.Bands[0].Columns["File_Path"].Hidden = true;
ultraGrid1.DisplayLayout.GroupByBox.Hidden = true;
ultraGrid1.DisplayLayout.Bands[0].SortedColumns.Add("Date", false, true);
ultraGrid1.DisplayLayout.AutoFitStyle = Infragistics.Win.UltraWinGrid.AutoFitStyle.ResizeAllColumns;
Which displays like this
+ Date 2015-07-22
Hour
- 11:06
- 11:01 <---- Click
When I attempt to retrieve the data as such
private void ultraGrid1_ClickCell(Object sender, Infragistics.Win.UltraWinGrid.ClickCellEventArgs clicked)
{
if (ultraGrid1.Rows[clicked.Cell.Row.Index].Cells["File_Path"].Value != null)
presentation_Browser.Navigate(ultraGrid1.Rows[clicked.Cell.Row.Index].Cells["File_Path"].Value.ToString());
}
Thanks for your response... I was using the wrong event to capture the clicked cell...
Thanks for your assistance.
Hi Adam,
Thank you for the reply.
I am afraid I don’t understand your question. Please clarify what you want to achieve.
I am looking forward to hearing from you.
Now how would a get and set the first selected item from the grouped results?
That got it...
I figured it was me...
Thanks
Thank you for posting in our forums.
Looking at the code that you have posted you can do a small modification by using:
clicked.Cell.Row
instead of:
ultraGrid1.Rows[clicked.Cell.Row.Index]
This will make sure that you are getting the correct row as if you are getting a row from a child band, you won’t be able to access it directly through the Rows collection of the grid.
What is the exception that you are getting? Please provide us with the stack trace for the exception and possibly with a small sample that reproduces this issue.