Skip to content

How to specify (fixed) width for columns in a data grid ? #1669

Answered by vnbaaij
MBNSoftware asked this question in Q&A
Discussion options

You must be logged in to vote

Hard to say exactly what is happening without seeing the code. You can specify the widths of the columns by setting the GridTemplateColumn parameter on the grid component like this:

GridTemplateColumns="0.2fr 1fr 0.2fr 0.2fr 0.2fr 0.2fr"

(adjusted to your number of columns of course)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by MBNSoftware
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants