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
4695
Display image with URL action in the ultragridcell
posted

Dear all,

Currently, I have set the ultragridcell to be URL and with text to be "X" meaning Delete line with event below.

protected void dataGrid_AfterCellActivate(object sender, EventArgs e)
        {
            Infragistics.Win.UltraWinGrid.UltraGridCell activeCell = this.dataGrid.ActiveCell;
            int colindex = activeCell.Column.Index;
            long lineNum = Convert.ToInt64(this.dataGrid.Rows[activeCell.Row.Index].Cells["ItemID"].Value.ToString());
            if(colindex==0)
            {
                if (evtItemDelete != null)
                    evtItemDelete(this, new StoreServer.VO.EventArguments.EvtArgsItemList(lineNum));
            }

Now I need to change the ultragridcell to be Image and can trigger the action when click on it. How to do??