C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Articles » .NET Framework »

WinForms .NET Combobox Control (for VB.NET, C#, C++)


Posted Date: 25 Aug 2005    Resource Type: Articles    Category: .NET Framework
Author: RustemMember Level: Silver    
Rating: 1 out of 5Points: 10



The combo control is not just a dropdown combobox. This .Net RustemSoft.Controls RSComboBox control has the following attractive features:

This combobox automatically fills the text at the cursor with the value of its dropdown values list. As characters are typed, the RSComboBox component finds the closest matching item from the list and automatically fills in the remaining characters. Appended characters are highlighted so that they are replaced by any further typing. For this auto-filling feature you can setup the character case sensibility.

This RustemSoft Control gives you ability to instantly update dropdown values with a really simple and friendly user interface. When you click the additional combo dropdown button a dictionary of its list values will be displayed below the combobox. You can update values, and insert and delete rows in the dictionary grid which is filled by data from a related datatable.

The control gives an ability to get a nesting combo box that filters values from a related child table. In a dictionary grid, you can view and edit related data in a child table. In your database a Master table has a one-to-many relationship with a Child table; so for each row of the Master table in Dictionary grid, you or your customer can view and edit the related rows of the Child table in a dictionary grid.



You can turn off all or some of these features and use the RSComboBox just as an easy dropdown RustemSoft.Controls' combobox.

You can set its DataSource, DisplayMember, and ValueMember to bind the combobox to a foreign table.


Syntax
VB: Dim MyRSCombo As RustemSoft.Controls.RSComboBox
C#: RustemSoft.Controls.RSComboBox MyRSCombo;


Parameters

DataSource - a source for RSComboBox control values list as System.Data.DataTable

DisplayMember - field to display in combo as Integer (index of column) or as String (name of table column)

ValueMember - field with values, which binds to RSComboBox as Integer (index of column) or as String (name of table column). Specify the contents of the ValueMember property in cases where you bind data.

SearchInList - identifies if you need auto-fill features as Boolean (default is True)

CaseSensitiveSearch - as Boolean (default is False)

CallDictionary - as Boolean (default is True). If False - the combobox is just a dropdown combobox without the dictionary grid.

allDictionaryColumns - works if CallDictionary is True only. The parameter identifies how many columns you need to see in the called Dictionary grid (default is 0)
You may set the following values:
0 - default. DisplayMember and/or ValueMember fields will be shown in your Dictionary grid.
1 - all related child table's fields will be shown in your Dictionary grid.
2 - all related child table's fields will be shown in your Dictionary grid except relation key fields.

Also you can leave the allDictionaryColumns parameter (define it as null in C# and C++ code) and specify your own columns for the Dictionary datagrid. Please see our samples to learn how to do that.
Download samples: http://www.smrtx.com/RS/RustemSoft.ControlsTrial.zip



Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Still Going Strong
Previous Resource: Which language to choose C# or VB ?(Part2)
Return to Discussion Resource Index
Post New Resource
Category: .NET Framework


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use