Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

Grid View

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
a.mustaq@gmail.com - 14 Jun 2007 04:51 GMT
Hi All,

               I have to develop a GridView  which consists of
TextBoxes and DropDownList and it should accepts input. I have created
that but in runtime it is not visible. Here I am giving the code of
GridView.

<asp:GridView ID="Gv_Name" runat="server" Height="155px" Width="974px"
AutoGenerateColumns="False" HorizontalAlign="Left" SelectedIndex="0"
PageSize="100" >
                               <Columns >
                                  <asp:TemplateField HeaderText
="Type">
                                    <ItemTemplate >
                                        <asp:DropDownList
ID="GvDdl_Type" runat ="server" CssClass="ddlControl"/>
                                    </ItemTemplate>
                                  </asp:TemplateField>
                                  <asp:TemplateField HeaderText
="First Name">
                                    <ItemTemplate >
                                        <asp:TextBox
ID="GvTxt_FirstName" runat ="Server" CssClass="txtControl" Text
="jvbjf"/>
                                    </ItemTemplate>
                                  </asp:TemplateField>
                                  <asp:TemplateField HeaderText
="Middle Name">
                                    <ItemTemplate >
                                        <asp:TextBox
ID="GvTxt_MiddleName" runat ="Server" CssClass="txtControl" />
                                    </ItemTemplate>
                                  </asp:TemplateField>
                                  <asp:TemplateField HeaderText
="Last Name">
                                    <ItemTemplate >
                                        <asp:TextBox
ID="GvTxt_LastName" runat ="Server" CssClass="txtControl"/>
                                    </ItemTemplate>
                                  </asp:TemplateField>
                                  <asp:TemplateField HeaderText
="Suffix">
                                    <ItemTemplate >
                                        <asp:DropDownList
ID="GvDdl_Suffix" runat ="server" CssClass="ddlControl"/>
                                    </ItemTemplate>
                                  </asp:TemplateField>
                               </Columns>
                                 <PagerSettings
PageButtonCount="100" />
                                 <RowStyle CssClass="DATAGRIDITEM"
Height="8pt" Width="15pt" />
                                 <HeaderStyle CssClass="GridHeader" /

                             </asp:GridView>

Please help in achieving the requirement.

Rehards
Mustaq Ahmed.A
Siva M - 14 Jun 2007 07:35 GMT
You will have to bind the grid to a data source to see the columns.

> Hi All,
>
[quoted text clipped - 56 lines]
> Rehards
> Mustaq Ahmed.A

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.