TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Dharmendra Kumar Pandit
868
918
10.8k
How to count total no of items in a combobox
May 29 2018 3:54 AM
1. Here is my code
void bindFinancialYear()
{
string str = "SELECT FYearID, concat( YEAR(startdate),'-',YEAR(enddate)) AS FinancialYear FROM FinancialYear ORDER BY FYearID DESC";
DataTable dtcombo = objdal.GetDataTable(str);
if (dtcombo.Rows.Count > 0)
{
cbFinancialYear.DataSource = dtcombo;
cbFinancialYear.DisplayMember = "FinancialYear";
cbFinancialYear.ValueMember = "FYearID";
cbFinancialYear.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;//To make combox readonly. User can type to search
cbFinancialYear.SelectedIndex = 0;
}
}
2. How to show total no of items in this cbFinancialYear Combobox.
Help me.
Reply
Answers (
2
)
multiple pages use within a form using panel control.
Get all ToolStripMenuItem names in a array from MenuStrip