ASP.NET Super Form - DropDownListField

Order Details
Order ID11077
Customer
Country
Update
 
Cancel
12345678910...
Add DropDownListField objects to the Fields collection to manually specify the fields that will be editable using a DropDownList. This type of field will render an OboutDropDownList control in add / edit mode, which will allow end users to modify the underlying data.

The DropDownListField class exposes some important properties:
  • DataField - gets or sets the name of the data field to bind to the DropDownListField object.
  • HeaderText - gets or sets the text that is displayed as the label of the field.
  • ReadOnly - gets or sets a value indicating whether the field is editable in add/edit mode.
  • DataSourceID - gets or sets the ID of the control from which the OboutDropDownList control retrieves its list of data items.
  • DisplayField - gets or sets a value indicating the field from the data source that will be used to display data in view mode.
  • DataTextField - gets or sets a value indicating the field of the data source that provides the text content for the list items.
  • DataValueField - gets or sets a value indicating the field of the data source that provides the value for the list items.

The AutoGenerateRows property of the Super Form needs to be set to false when manually defining the fields.
ASP.NET
<obout:SuperForm ID="SuperForm1"
     runat="server"
     DataSourceID="SqlDataSource1"
     AutoGenerateRows="false">
    <Fields>
        <obout:DropDownListField DataField="CustomerID" DisplayField="CompanyName">
         HeaderText="Customer" DataSourceID="SqlDataSource2" />
        ...
    </Fields>
</obout:SuperForm>

"My Feedback for Product: The obout GRID control is the best and easiest grid control I have ever used till date. It has all the features that needs to be, within a GRID and it’s so user friendly that even a layman can use it just by drag and drop and few lines of code. My Feedback for Support: Honestly speaking, I had not expected the first response from obout that quickly. I mean, I got the response to my query in less than 20 minutes (which is really amazing) and I was really shock to see that. And also, good to see the way Obout team works to fix the issue so quickly. Please continue do design and develop the best tools that are really helpful for the developers in the IT market."

Rohan Lopes

Random testimonial   All testimonials

obout.com 
obout.com Home 
News 
Super Form Home   
Super Form Home 
Examples - 64
First Look - 2 
Quick Setup 
Checkout 
Appearance - 3 
Live Styles 
Live Styles for DateFields New 
Auto Format 
Fields - 10 
Auto Generate Fields 
BoundField 
CheckBoxField 
CommandField 
DateField 
DateField with Time New 
DropDownListField 
MultiLineField 
Password Field New 
TemplateField 
Add / Edit / Delete - 7 
Auto Generate Command Buttons 
Customize Command Buttons 
Request User Confirmation 
Add-Only Form 
Edit-Only Form New 
Default Values for Add New 
Save using Stored Procedures New 
Layout - 7 
Vertical / Horizontal Direction 
Field Sets 
Field Sets with Column Span 
Field Sets with Tabs New 
Multi-Step Wizard New 
Multi-Step Survey New 
Width 
Master / Detail - 4 
Master Grid 
Master ComboBox 
Master ListBox 
Add / Edit in Separate Page 
Templates - 11 
ComboBox Field 
On-Demand ComboBox Field New 
Cascading ComboBox Field 
MultiLevel ComboBox Field 
Multi Select ComboBox Field 
ListBox Field 
Multi Select ListBox Field 
HTML Editor Field  
FileUpload Field 
CheckBoxList Field 
RadioButtonList Field 
Validation - 9 
Required Fields 
Type Validation 
ReqEx & Custom Validation 
Validation Summary 
Validator Callout 
Validate Super Form inside Grid New 
Validate Custom DropDownListField New 
Validate using CompareValidator New 
Validate Linked Fields New 
Masks / Filters - 2 
Edit Masks 
Filters 
Linked Fields / Buttons - 4 
Enable / Disable Command Buttons 
Enable / Disable Linked Fields 
Show / Hide Linked Fields 
Conditional Linked Fields 
Client Side API - 1 
External Buttons New 
Server Side API - 1 
Focus New 
Localization - 1 
Localize Date Fields New 
Integration - 2 
Row Edit Template for Grid New 
Grid Editor inside Window New 
Knowledge Base - 1 
Knowledge Base 
Documentation - 6 
Server-Side 
ClientSideEvents 
Direction 
FieldSet 
FieldSetRow 
SuperForm 
ChangeLog