Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Arthur #1
dropdownlist autopostback when editing in datagrid
I have multiple dropdownlists in edit mode of my datagrid.
list 1 effects the members of list 2
i.e.
list 1 --> department
list 2 --> department members
when a user select a new department in the dropdownlist I
want to re-populate the members list dependent on the
department selected
Normally I use the autopostback feature but I cannot get
that to work inside the datagrid
bindDepartment and BindMembers are functions used to
initiall populate the lists
below is the first dropdownlist
<edititemtemplate>
<asp:dropdownlist Width="90px" ID="Department"
CssClass="Standard-text" DataSource='<%# BindDepartment
(_timeEdit.Department) %>' DataTextField="Department"
DataValueField="Department" Runat="server" >
</asp:dropdownlist>
</edititemtemplate>
<edititemtemplate>
<asp:dropdownlist Width="90px" ID="Members"
CssClass="Standard-text" DataSource='<%# BindMembers
(_timeEdit.Department, _timeEdit.Members) %>'
DataTextField="Members" DataValueField="Members"
Runat="server" >
</asp:dropdownlist>
</edititemtemplate>
Thanks
Arthur
Arthur Guest
-
Asp.net DropDownList, AutoPostBack, and ViewState
I'm trying to finish off do an ASP.NET project where a DropDownList box is used to access a Table. Once you Make a selection on an item in the... -
AutoPostback DropDownList in EditItemTemplate
I have a dropdownlist as an item in my edititemtemplate. I need to populate a texbox in the same edititemtemplate with the contents of the... -
DropDownList and AutoPostback -- default item
Hello -- Is there a way to prevent the autopostback of a drop down list if there is a "default" item in the list -- example, a drop down list... -
dropdownlist in a datagrid
I thought I saw this somewhere, but I want to have a dropdownlist in a datagrid. I have the column as an Item template, but when I paste in the... -
capture dropdownlist in edit mode autopostback
I have a datagrid that in edit mode shows a dropdownlist. I need to be able to postback and manipulate some of the edit template controls depending...



Reply With Quote

