Avatar of nphani1884
nphani1884Flag for United States of America

asked on 

I have 2 drop down list poupulated from a datatable and a gridview populated from the datatable.onclicking submit button my values in the grid need to be changed based on selected index

I have two dropdownlists populated from a datatable and a gridview populated from a datatable.On clicking on the submit button i like to populate my grid values based on the selcted index of the dropdownlist.can any one help me.
<asp:DropDownList ID="DropDownList1" runat="server" SkinID="drpLarge" 
                        onselectedindexchanged="dd1PermissionProups_SelectedIndexChanged">
					  </asp:DropDownList>
					<asp:DropDownList ID="DropDownList2" runat="server" SkinID="drpLarge">
					    </asp:DropDownList>
					<asp:Button ID="Button1" runat="server" Text="Filter"  CssClass="filter-button"
                        FilterCssClass="filter-button" onclick="Filter_Click" />
				</div>
				<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    Width="1018px" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" 
                    BorderWidth="1px" CellPadding="3"  Height="399px" 
                    onselectedindexchanged="GridView1_SelectedIndexChanged" CellSpacing="2" 
                    AllowPaging="True" onrowediting="GridView1_RowEditing">
                        <PagerSettings Mode="NextPreviousFirstLast" />
                        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                        <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
            <Columns>
            <asp:TemplateField HeaderText="Email1">
                    <ItemTemplate>
                        <asp:Label ID="Email1" runat="server" Text='<%# Eval("Email1") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="PermissionGroup">
                    <ItemTemplate>
                        <asp:Label ID="PermissionGroup" runat="server" Text='<%# Eval("PermissionGroup") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Status">
                    <ItemTemplate>
                        <asp:Label ID="Status" runat="server" Text='<%# Eval("Status") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>                <asp:ButtonField ButtonType="Button" CommandName="Edit" Text="Button" />
                </Columns>
                </asp:GridView>

Open in new window

.NET ProgrammingASP.NETC#

Avatar of undefined
Last Comment
nphani1884
SOLUTION
Avatar of kdiederi
kdiederi

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of nphani1884
nphani1884
Flag of United States of America image

ASKER

hi kdiederi,
I am not using sql data base in connecting to the database.I use Nhibernate objects in talking to the database.when this is the case how can my problem can be solved.
ASKER CERTIFIED SOLUTION
Avatar of nphani1884
nphani1884
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo