[Mono-list] DataGrip TemplateColumn and mono 1.1.9

Slava Petrenko slava at z.org.ua
Sun Sep 11 19:14:10 EDT 2005


Hi, All,

After I upgraded from mono 1.1.8 to 1.1.9, the following aspx

        <asp:datagrid id="dgCurrency" runat="Server"
            AutoGenerateColumns="False"
            OnCancelCommand="DataCancel"
            OnUpdateCommand="DataUpdate"
            OnEditCommand="DataEdit"
            OnItemCommand="ItemsCommand"
            OnItemDataBound="ItemsDataBound"
            ShowFooter="true"
            CellPadding="2"
            DataKeyField="id">

            <Columns>

                <asp:BoundColumn DataField="id" HeaderText="ID" 
Visible="false" runat="server" />

                <asp:TemplateColumn>
                    <HeaderTemplate>
                        <center><asp:Label Text="Название RUS" 
runat="server" Font-Bold /></center>
                    </HeaderTemplate>

                    <ItemTemplate>
                        <asp:Label id="lblNameRus" runat="server"
                            Text='<%# DataBinder.Eval(Container, 
"DataItem.rus_title") %>' />
                    </ItemTemplate>

                    <EditItemTemplate>
                        <asp:TextBox id="tbNameRus" runat="server"
                            DataValueField="id"
                            DataTextField="rus_title"
                            Text='<%# DataBinder.Eval(Container, 
"DataItem.rus_title") %>' />
                    </EditItemTemplate>

                    <FooterTemplate>
                        <asp:TextBox ID="tbNewNameRus" runat="server" 
Width="100%" />
                    </FooterTemplate>
                </asp:TemplateColumn>
            </Columns>
        </asp:datagrid>

looks wrong:

column described by:
   <asp:BoundColumn DataField="id" HeaderText="ID" Visible="false" 
runat="server" />
is visible now, all tags <asp:TemplateColumn>...</asp:TemplateColumn> 
produce no output - just empty <td></td>
that's went wrong?

Slava.


More information about the Mono-list mailing list