calendar in a gridview row

Hi there,

              In my gridview, I have an imagebutton that pops up a calendar on its click event. But when a calendar pops up, the row is strteched to the size of the calendar and the gridview looks so ugly. Is there a way to limit the calendar size to the gridview row?
siddhuoopsAsked:
Who is Participating?
 
Bob LearnedCommented:
I would wrap the calendar in a floating <div> an set z-index for the <div> to something like 99999 to make it pop up on top of the other controls.

Bob
0
 
Bob LearnedCommented:
How is the Calendar declared?

Bob
0
 
siddhuoopsAuthor Commented:
<asp:Calendar id="Calendar1" runat="server" Height="178px" Width="199px" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" Visible="False" BackColor="White" BorderColor="#999999" CellPadding="4" __designer:wfdid="w7" DayNameFormat="Shortest" OnSelectionChanged="Calendar1_SelectionChanged" OnDayRender="Calendar1_DayRender">
<SelectedDayStyle BackColor="#666666" ForeColor="White" Font-Bold="True"></SelectedDayStyle>

<TodayDayStyle BackColor="#CCCCCC" ForeColor="Black"></TodayDayStyle>

<SelectorStyle BackColor="#CCCCCC"></SelectorStyle>

<WeekendDayStyle BackColor="#FFFFCC"></WeekendDayStyle>

<OtherMonthDayStyle ForeColor="#808080"></OtherMonthDayStyle>

<NextPrevStyle VerticalAlign="Bottom"></NextPrevStyle>

<DayHeaderStyle BackColor="#CCCCCC" Font-Size="7pt" Font-Bold="True"></DayHeaderStyle>

<TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True"></TitleStyle>
</asp:Calendar>
0
 
Bob LearnedCommented:
Are you wanting the Calendar control to come on top of the other controls?

Bob
0
 
siddhuoopsAuthor Commented:
yeah that wud be fine too as long as the gridview row doesn't extend because of a calendar...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.