|
-
Dec 9th, 2004, 09:46 AM
#1
Thread Starter
Fanatic Member
data grid drop down
I would like to place a drop down list control in one of the cells of my web datagrid.
Could you please let me know how this is done or a good link to read about this?
This is my current datagrid work in case you can help
Thanks
<asp:datagrid id="grdSearch" runat="server" Font-Size="XX-Small" Width="100%" Height="100%" ShowFooter="True"
CellSpacing="1" GridLines="Horizontal" AllowPaging="True" Font-Names="Arial" AllowSorting="True"
AutoGenerateColumns="False" CellPadding="1" BackColor="White" BorderWidth="1px" BorderStyle="None"
BorderColor="#E7E7FF">
<SelectedItemStyle Font-Bold="True" ForeColor="#F7F7F7" BackColor="#738A9C"></SelectedItemStyle>
<AlternatingItemStyle BackColor="#F7F7F7"></AlternatingItemStyle>
<ItemStyle ForeColor="#4A3C8C" BackColor="#E7E7FF"></ItemStyle>
<HeaderStyle Font-Size="XX-Small" Font-Names="arial" Font-Bold="True" ForeColor="#F7F7F7" BackColor="#4A3C8C"></HeaderStyle>
<FooterStyle ForeColor="#4A3C8C" BackColor="#B5C7DE"></FooterStyle>
<Columns>
<asp:HyperLinkColumn DataNavigateUrlField="ChangeID" DataNavigateUrlFormatString="wfCRdetail.aspx?ChargeID={0}"
DataTextField="DCTAnalyst" SortExpression="DCTAnalyst" HeaderText="Analyst">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:HyperLinkColumn>
<asp:BoundColumn DataField="UserID" SortExpression="Username" ReadOnly="True" HeaderText="Username">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="Status" SortExpression="Status" HeaderText="Status">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="Country" SortExpression="Country" HeaderText="Country">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundColumn>
<asp:ButtonColumn Text="Edit Request" ButtonType="PushButton" CommandName="Select">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:ButtonColumn>
<asp:EditCommandColumn ButtonType="PushButton" UpdateText="Update" CancelText="Cancel" EditText="Edit">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:EditCommandColumn>
<asp:ButtonColumn Text="Delete" ButtonType="PushButton" CommandName="Delete">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:ButtonColumn>
</Columns>
<PagerStyle VerticalAlign="Middle" HorizontalAlign="Center" ForeColor="#4A3C8C" BackColor="#E7E7FF"
Mode="NumericPages"></PagerStyle>
</asp:datagrid>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|