Default Alignment:
-
- When you create a new grid control (for input or output), the default alignment for the entire grid is set to left. However, this can be changed easily.
Accessing the Designer Interface:
-
- Open the grid’s designer interface.
- Scroll down to the sections labeled Header Alignment and Content Alignment.
Understanding the Grid Layout:
-
- The grid is divided into two sections:
- Header: The top section of the grid.
- Content: The area below the header.
- The grid is divided into two sections:
Adjusting Alignment for the Entire Grid:
-
- You can set the Header Alignment to left, right, or center.
- Similarly, adjust the Content Alignment to your preferred setting.
- Preview your changes to see the updated alignment for the entire grid.
Setting Alignment for Individual Columns:
-
- If you want to control the alignment of specific columns (e.g., setting the number and currency columns to right while keeping text, date, and time columns left):
- Go to the designer interface.
- Scroll down to adjust the properties for each column individually.
- Click on the number column and change its content alignment to Right.
- Repeat the same steps for the currency column, setting its content alignment to Right.
- Ensure you save your changes.
- If you want to control the alignment of specific columns (e.g., setting the number and currency columns to right while keeping text, date, and time columns left):
Preview the Result:
-
- Click Preview to view your updated grid. Only the content of the number and currency columns will be aligned to the right, while other columns will remain left-aligned.
Applicability:
-
- These alignment settings apply to both input and output grids, and work for both inline and form-basedgrids.