Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Annie #1
Datagrid Template Column size control
Hello guys,
I have a datagrid with 2 Template columns. 1 colum which has all the data in
the form of a HTML table and other which has
an image control and shows the image there. I only show the detail of 1 item
there. However, the height of the datagird is much
bigger than I want it to be. It shows the details in the top and the bottom
all blank. I set the width and hieght to fix sizes but it
doesn't work.
How to control the size of datagrid with customized columns?
I have something lik this
..
..
..
<tr>
<td align="left"><b>Colour Screen</b></td>
<td><%# DataBinder.Eval(Container.DataItem, "ModelColour") %></td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Image">
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top"></ItemStyle>
<ItemTemplate>
<asp:Image ImageUrl='<%# DataBinder.Eval(Container.DataItem, "ModelImage")
%>' runat="server">
</asp:Image>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
TIA
Annie Guest
-
Calendar within DataGrid Edit Control or Template Column
I'm currently trying to build a calendar functionality into a datagrid that opens a new web page. Once the user selects the date in the new page,... -
Dynamic Template column in DataGrid control
Hi Everybody, I am trying to create a dynamic template column in a datagri control using the ITemplate interface. //part of my code in the... -
How can I dynamically add a control to a DataGrid Template column?
I want to do the following: // create the template column ... TemplateColumn tc = new TemplateColumn(); tc.HeaderText = "Location";... -
Dynamic Template Column Sorting in DataGrid control
Hi, am facing a problem while using ASP.NET Datagrid Template Columns generated dynamically. Scenario: ------------- 1) I have a custom... -
How to Bind a DropDownList control to a DataGrid in Template Column?
I'm having a tough time with this, and I can't find any resources that address it. I have a DataGrid comprised of Template Columns, in which I have... -
Annie #2
Re: Datagrid Template Column size control
Guys,
I sorted out this issue my self ... I created a value in my .css file for
..gridTable and set the values there.
It works great now.
Thanks
"Annie" <myjunksandforums@gmail.com> wrote in message
news:4320eeb2$1@dnews.tpgi.com.au...> Hello guys,
>
> I have a datagrid with 2 Template columns. 1 colum which has all the data
> in the form of a HTML table and other which has
> an image control and shows the image there. I only show the detail of 1
> item there. However, the height of the datagird is much
> bigger than I want it to be. It shows the details in the top and the
> bottom all blank. I set the width and hieght to fix sizes but it
> doesn't work.
>
> How to control the size of datagrid with customized columns?
>
> I have something lik this
>
> .
> .
> .
> <tr>
> <td align="left"><b>Colour Screen</b></td>
> <td><%# DataBinder.Eval(Container.DataItem, "ModelColour") %></td>
> </tr>
>
> </table>
> </ItemTemplate>
> </asp:TemplateColumn>
> <asp:TemplateColumn HeaderText="Image">
> <ItemStyle HorizontalAlign="Left" VerticalAlign="Top"></ItemStyle>
> <ItemTemplate>
> <asp:Image ImageUrl='<%# DataBinder.Eval(Container.DataItem, "ModelImage")
> %>' runat="server">
> </asp:Image>
> </ItemTemplate>
> </asp:TemplateColumn>
> </Columns>
>
> TIA
>
Annie Guest



Reply With Quote

