I generate different Grids
with different columns. Automatically ImageSizes
are fixed depending upon the data. So every Grid
has a different size.
grid1=Grid[{{Item["Name", Frame -> True, Background -> LightBlue, Alignment -> Left],
Item["Branch", Frame -> True, Background -> LightBlue,Alignment -> Left],
Item["Section", Frame -> True, Background -> LightBlue,Alignment -> Left]},
{"s", "IT", "A"},
{"u", "IT", "A"},
{"b","IT", "A"},
{"b", "IT", "A"},
{"b", "IT", "A"}}, Frame -> True
];
grid2=Grid[{{Item["Name", Frame -> True, Background -> LightBlue, Alignment -> Left],
Item["Branch", Frame -> True, Background -> LightBlue,Alignment -> Left],
Item["Section", Frame -> True, Background -> LightBlue,Alignment -> Left]},
{"subrahmanyam", "IT", "A"},
{"Madhu", "IT", "A"},
{"Kiran","IT", "A"},
{"KalyanKumar", "IT", "A"},
{"Pavan", "IT", "A"}}, Frame -> True
];
grid3 = Grid[{{"Main", SpanFromLeft, SpanFromLeft,
SpanFromLeft}, {Item["Name", Frame -> True,
Background -> LightBlue, Alignment -> Left],
Item["Branch", Frame -> True, Background -> LightBlue,
Alignment -> Left],
Item["Section", Frame -> True, Background -> LightBlue,
Alignment -> Left],
Item["Section", Frame -> True, Background -> LightBlue,
Alignment -> Left]}, {"subrahmanyam", "IT", "A", "g"}, {"Madhu",
"IT", "A"}, {"Kiran", "IT", "A"}, {"KalyanKumar", "IT",
"A"}, {"Pavan", "IT", "A"}}, Frame -> True,
ItemSize -> {{10, 7, 7, 7}, 1}];
finalGrid=Grid[{{grid3},{grid1}, {grid2}, {grid1}, {grid2}, {grid1}, {grid2}}]
grid1Image=
grid2Image=
grid3Image=
finalImage=
If I place all the Grids
columnwise within Grid
, it doesn't look good.
So, I want to fix all the Grids
with the same sizes. I tried various things, but nothing seems to work.
Can anybody help me?