Exemplo n.º 1
0
 private string GetCellValue(object oValue)
 {
     byte [] oByte = oValue as byte [];
     if (oByte == null)
     {
         return(oValue.ToString());
     }
     return(ByteConvert.ToHexString(oByte));
 }
Exemplo n.º 2
0
        protected override object GetColumnValueAtRow(CurrencyManager source, int rowNum)
        {
            object o = base.GetColumnValueAtRow(source, rowNum);

            if (o.GetType() == Type.GetType("System.Byte[]"))
            {
                return(ByteConvert.ToHexString((byte[])o));
            }
            return(o);
        }