示例#1
0
        protected DataGridColumnStyle GetColStyle(DataColumn oColumn)
        {
            DataGridColumnStyle oColStyle = null;

            if (oColumn.DataType == Type.GetType("System.Byte[]"))
            {
                oColStyle = new DataGridReadOnlyByteColumn();
            }
            else
            {
                oColStyle = new DataGridReadOnlyColumn();
            }
            oColStyle.MappingName = oColumn.ColumnName;
            oColStyle.HeaderText  = oColumn.ColumnName;
            oColStyle.NullText    = Globals.GridNullValue;
            return(oColStyle);
        }
示例#2
0
 protected DataGridColumnStyle GetColStyle(DataColumn oColumn)
 {
     DataGridColumnStyle oColStyle = null;
     if (oColumn.DataType == Type.GetType("System.Byte[]"))
         oColStyle = new DataGridReadOnlyByteColumn();
     else
         oColStyle = new DataGridReadOnlyColumn();
     oColStyle.MappingName = oColumn.ColumnName;
     oColStyle.HeaderText = oColumn.ColumnName;
     oColStyle.NullText = Globals.GridNullValue;
     return oColStyle;
 }