Exemple #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);
        }
 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;
 }