aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCustomQuery.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPCustomQuery.m')
-rw-r--r--Source/SPCustomQuery.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m
index bfb6f952..f590de42 100644
--- a/Source/SPCustomQuery.m
+++ b/Source/SPCustomQuery.m
@@ -1486,6 +1486,13 @@
[[dataCell formatter] setTextLimit:[[columnDefinition objectForKey:@"char_length"] integerValue]];
}
+ // Set the column to right-aligned for numeric data types
+ if ([[columnDefinition objectForKey:@"typegrouping"] isEqualToString:@"integer"]
+ || [[columnDefinition objectForKey:@"typegrouping"] isEqualToString:@"float"])
+ {
+ [dataCell setAlignment:NSRightTextAlignment];
+ }
+
// Set field type for validations
[[dataCell formatter] setFieldType:[columnDefinition objectForKey:@"type"]];
[theCol setDataCell:dataCell];