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