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)
{
}
}
}