I have a grid(grid_Attachments) which displays the file attachments type and link. The grid is populating and I am trying to get a text field(epiTextBoxOrderNoAttach.Text) to show the contents of the selected row and cell in the grid. I am getting it to return, but it is the wrong info. It is returning information about the grid.
private void grid_Attachments_AfterRowActivate(object sender, System.EventArgs args)
{
UltraGridRow activeRow = grid_Attachments.ActiveRow;
epiTextBoxOrderNoAttach.Text = activeRow.Cells["XFileRef_XFileName"].ToString();
//SetupBrowser_AttachmentListView();
}```