.ʟᴜᴄʏʏ𓆩♡𓆪.ₐᵥₐ
.ʟᴜᴄʏʏ𓆩♡𓆪.ₐᵥₐ
Explore posts from servers
CC#
Created by .ʟᴜᴄʏʏ𓆩♡𓆪.ₐᵥₐ on 12/4/2023 in #help
Binding Nested GridView to structure.
CoreBehind
10 replies
CC#
Created by .ʟᴜᴄʏʏ𓆩♡𓆪.ₐᵥₐ on 12/4/2023 in #help
Binding Nested GridView to structure.
No description
10 replies
CC#
Created by .ʟᴜᴄʏʏ𓆩♡𓆪.ₐᵥₐ on 12/4/2023 in #help
Binding Nested GridView to structure.
No description
10 replies
CC#
Created by .ʟᴜᴄʏʏ𓆩♡𓆪.ₐᵥₐ on 12/4/2023 in #help
Binding Nested GridView to structure.
Here are the functions called
10 replies
CC#
Created by .ʟᴜᴄʏʏ𓆩♡𓆪.ₐᵥₐ on 12/4/2023 in #help
Binding Nested GridView to structure.
@yanfryxd
10 replies
CC#
Created by .ʟᴜᴄʏʏ𓆩♡𓆪.ₐᵥₐ on 12/4/2023 in #help
Binding Nested GridView to structure.
I don't know if this will work yet since i'm not the one doing this
10 replies
CC#
Created by .ʟᴜᴄʏʏ𓆩♡𓆪.ₐᵥₐ on 12/4/2023 in #help
Binding Nested GridView to structure.
However i'm going practically blindfolded
10 replies
CC#
Created by .ʟᴜᴄʏʏ𓆩♡𓆪.ₐᵥₐ on 12/4/2023 in #help
Binding Nested GridView to structure.
I tried adding:
protected void grvHabitacion_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
GridView grvCategoria = (GridView)e.Row.FindControl("grvCategoria");
HabitacionBE habitacion = (HabitacionBE)e.Row.DataItem;
grvCategoria.DataSource = new List<CategoriaBE> { habitacion.Categoria };
grvCategoria.DataBind();
}
}
protected void grvHabitacion_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
GridView grvCategoria = (GridView)e.Row.FindControl("grvCategoria");
HabitacionBE habitacion = (HabitacionBE)e.Row.DataItem;
grvCategoria.DataSource = new List<CategoriaBE> { habitacion.Categoria };
grvCategoria.DataBind();
}
}
10 replies
CC#
Created by .ʟᴜᴄʏʏ𓆩♡𓆪.ₐᵥₐ on 12/4/2023 in #help
Binding Nested GridView to structure.
<asp:GridView ID="grvHabitacion" runat="server" AllowPaging="True" AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical" OnPageIndexChanging="grvHabitacion_PageIndexChanging" PageSize="15" ShowHeaderWhenEmpty="True" Width="483px">
<AlternatingRowStyle BackColor="White" />
<Columns>
<asp:BoundField DataField="tipo" HeaderText="Tipo" />
<asp:BoundField DataField="estado" HeaderText="Estado" />
<asp:BoundField DataField="disponibilidad" HeaderText="Disponibilidad" />
<asp:TemplateField HeaderText="Categoria">
<ItemTemplate>
<asp:GridView ID="grvCategoria" runat="server" AutoGenerateColumns="False">
<Columns>
<asp:BoundField DataField="tarifa" HeaderText="Tarifa" />
<asp:BoundField DataField="descripcion" HeaderText="Descripcion" />
<asp:BoundField DataField="caracteristicas" HeaderText="Caracteristicas" />
</Columns>
</asp:GridView>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#CCCC99" />
<HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
<RowStyle BackColor="#F7F7DE" />
<SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#FBFBF2" />
<SortedAscendingHeaderStyle BackColor="#848384" />
<SortedDescendingCellStyle BackColor="#EAEAD3" />
<SortedDescendingHeaderStyle BackColor="#575357" />
</asp:GridView>
<asp:GridView ID="grvHabitacion" runat="server" AllowPaging="True" AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical" OnPageIndexChanging="grvHabitacion_PageIndexChanging" PageSize="15" ShowHeaderWhenEmpty="True" Width="483px">
<AlternatingRowStyle BackColor="White" />
<Columns>
<asp:BoundField DataField="tipo" HeaderText="Tipo" />
<asp:BoundField DataField="estado" HeaderText="Estado" />
<asp:BoundField DataField="disponibilidad" HeaderText="Disponibilidad" />
<asp:TemplateField HeaderText="Categoria">
<ItemTemplate>
<asp:GridView ID="grvCategoria" runat="server" AutoGenerateColumns="False">
<Columns>
<asp:BoundField DataField="tarifa" HeaderText="Tarifa" />
<asp:BoundField DataField="descripcion" HeaderText="Descripcion" />
<asp:BoundField DataField="caracteristicas" HeaderText="Caracteristicas" />
</Columns>
</asp:GridView>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#CCCC99" />
<HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
<RowStyle BackColor="#F7F7DE" />
<SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#FBFBF2" />
<SortedAscendingHeaderStyle BackColor="#848384" />
<SortedDescendingCellStyle BackColor="#EAEAD3" />
<SortedDescendingHeaderStyle BackColor="#575357" />
</asp:GridView>
10 replies