Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
How to retrieve UltraWebGrid Column.Index in 8.3
posted
In previous versions, I could retrieve the selected column by the following code:void wgContacts_Click(object sender, Infragistics.WebUI.UltraWebGrid.ClickEventArgs e)

{

Infragistics.WebUI.UltraWebGrid.UltraGridCell myCell = e.Cell;

if (myCell.Column.Index == 0)

{

Response.Redirect(
"editContact.aspx?ID=" + myCell.Row.Cells[2].Value.ToString());

}

else if (myCell.Column.Index == 1)

{

hidContactID.Value = myCell.Row.Cells[2].Value.ToString();

lblConfirmDelete.Text =
"Delete " + myCell.Row.Cells[4].ToString() + " " + myCell.Row.Cells[3].ToString() + "?";

showDialog(wdlgConfirmDelete);

}

else

{

.....

}

}

In 8.3 the e.Cell.Column is null. How do I retrieve the column index now? I would prefer to use the UltraWebGrid.Click() method, since I have several other sites which are using that method.

Thanks,

Eric Hintz
MCSD.NET

 

Parents
  • 28464
    Verified Answer
    posted

    Hello Eric,

    Thanks for dropping us a line and for reporting this issue. In this particular case however, I am not able to reproduce that locally. Using a very simple grid setup, I just dragged a grid from the toolbox and handled the click event - no matter what I tried, e.Cell.Column was correctly set and the index was available. Please, take a look at the screenshot for additional details. The version I am using is Version=8.3.20083.1009.

    Am I missing something? And in any case, I believe in cases like this it is best to contact Developer Support directly via the following link

    http://ko.infragistics.com/Support/default.aspx#Overview

    Since I believe that in cases like this direct communication with dev support might prove faster / more effective than peer to peer forums.

     

Reply Children
No Data