VAGSuite.frmCodeBlocks.gridView1_CustomDrawCell C# (CSharp) Метод

gridView1_CustomDrawCell() приватный Метод

private gridView1_CustomDrawCell ( object sender, DevExpress e ) : void
sender object
e DevExpress
Результат void
        private void gridView1_CustomDrawCell(object sender, DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventArgs e)
        {
            if (e.Column.Name == "colStartAddress" || e.Column.Name == "colEndAddress" || e.Column.Name == "colAddressID")
            {
                try
                {
                    if (e.CellValue != null)
                    {
                        int addr = Convert.ToInt32(e.CellValue);
                        e.DisplayText = addr.ToString("X8");
                    }
                }
                catch(Exception)
                {

                }
            }
        }