Click here to Skip to main content
13,293,950 members (58,564 online)
Rate this:
Please Sign up or sign in to vote.
See more:

I need to add tabcontainer inside a gridview which retrives data from sql server.Could you please help me to do this?
Currently iam getting the following error in the gridview
Couldnot find any resources appropriate for the specified culture or the neutral culture.makesure "AjaxControlToolkit.propertied.resources.resources"was correctly embedde or linkined into assembly"AjaxControlToolkit"atcompile time,or that all the satellite assemblies required are loadable and fully signed."

This is the code i have given
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
            PageSize="6" Height="1173px" Width="705px"
        <ajaxToolkit:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="2">
        <ajaxToolkit:TabPanel runat="server" HeaderText="TabPanel1" ID="TabPanel1">
        <ajaxToolkit:TabPanel runat="server" HeaderText="TabPanel2" ID="TabPanel2">
        <ajaxToolkit:TabPanel ID="TabPanel3" runat="server" HeaderText="TabPanel3">

[edit]corrected code block[/edit]
Posted 18-Nov-12 2:35am
Updated 18-Nov-12 12:13pm
Krunal R 18-Nov-12 8:05am
you can have gridview inside tabcontainer
spriyanair 19-Nov-12 0:49am
Hi my requirement is to add a tabpanel in each row of gridview

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I have tested again and find out that it will get the error above in design mode. However, the code works well when run it. In my opinion, it is a bug about VS

please find my code below

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<head runat="server">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" PageSize="6"
            Height="1173px" Width="705px" DataSourceID="AccessDataSource1">
                <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True"
                    SortExpression="ID" />
                <asp:BoundField DataField="Content" HeaderText="Content" SortExpression="Content" />
                        <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="1">
                            <asp:TabPanel ID="TabbPnl1" runat="server">
                                    View User Trace
                                    <asp:Panel ID="pnlMain" runat="server">
                                        <asp:TextBox ID="txt" runat="server" Text="panel1"></asp:TextBox></asp:Panel>
                            <asp:TabPanel ID="TabPanel1" runat="server">
                                    View User Trace2
                                    <asp:Panel ID="Panel1" runat="server">
                                        <asp:TextBox ID="TextBox1" runat="server" Text="panel2"></asp:TextBox>
        <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/Database1.accdb"
            SelectCommand="SELECT * FROM [Table1]"></asp:AccessDataSource>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171207.1 | Last Updated 20 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100