예제 #1
0
 private string GetCellValue(object oValue)
 {
     byte [] oByte = oValue as byte [];
     if (oByte == null)
     {
         return(oValue.ToString());
     }
     return(ByteConvert.ToHexString(oByte));
 }
예제 #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);
        }