Click here to Skip to main content
15,919,479 members
Home / Discussions / C#
   

C#

 
GeneralRe: Yield break Pin
Brij3-Oct-10 9:56
mentorBrij3-Oct-10 9:56 
GeneralRe: Yield break Pin
Luc Pattyn3-Oct-10 10:16
sitebuilderLuc Pattyn3-Oct-10 10:16 
GeneralRe: Yield break Pin
Pete O'Hanlon3-Oct-10 10:56
mvePete O'Hanlon3-Oct-10 10:56 
GeneralRe: Yield break Pin
Luc Pattyn3-Oct-10 11:04
sitebuilderLuc Pattyn3-Oct-10 11:04 
GeneralRe: Yield break Pin
Pete O'Hanlon3-Oct-10 11:13
mvePete O'Hanlon3-Oct-10 11:13 
Questionscprip's system Pin
noamtzu003-Oct-10 3:48
noamtzu003-Oct-10 3:48 
QuestionTyping in DatagridviewComboboxColumn Pin
jojoba20113-Oct-10 3:47
jojoba20113-Oct-10 3:47 
AnswerSolved: Typing in DatagridviewComboboxColumn Pin
jojoba20113-Oct-10 4:51
jojoba20113-Oct-10 4:51 
#region Enable Typing in DataGridViewComboBoxColumn
private void dgvPhone_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
        {
            try
            {
                if (this.dgvPhone.CurrentCellAddress.X == 2)
                {
                    ComboBox cb = e.Control as ComboBox;
                    if (cb != null)
                    {
                        cb.DropDownStyle = ComboBoxStyle.DropDown;
                        cb.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
                    }
                }
            }
            catch (Exception ex)
            {
                clsErrorHandle.GetError(ex);
            }
        }

#region Enable Add new items Dynamically to DataGridViewComboBoxColumn
private void dgvPhone_CellValidating(object sender, DataGridViewCellValidatingEventArgs e)
        {
            try
            {
                if (this.dgvPhone.CurrentCellAddress.X == 2)
                {
                    if (!ColPhoneType.Items.Contains(e.FormattedValue) && !clsMain.IsObjectNullorEmpty(e.FormattedValue))
                    {
                        ColPhoneType.Items.Add(e.FormattedValue);
                        DataRow drPhone = dtPhoneType.NewRow();
                        drPhone["PhoneType"] = e.FormattedValue;
                        dtPhoneType.Rows.Add(drPhone);
                    }
                    dgvPhone.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = e.FormattedValue;
                }
            }
            catch (Exception ex)
            {
                clsErrorHandle.GetError(ex);
            }
        }

#endregion
#endregion
AnswerRe: Typing in DatagridviewComboboxColumn Pin
Abhinav S3-Oct-10 4:59
Abhinav S3-Oct-10 4:59 
Questionf Pin
Sajid Maqbool2-Oct-10 23:34
Sajid Maqbool2-Oct-10 23:34 
AnswerRe: f Pin
OriginalGriff2-Oct-10 23:38
mveOriginalGriff2-Oct-10 23:38 
AnswerRe: f Pin
Nagy Vilmos3-Oct-10 3:40
professionalNagy Vilmos3-Oct-10 3:40 
AnswerRe: f Pin
#realJSOP4-Oct-10 2:05
professional#realJSOP4-Oct-10 2:05 
QuestionImporting .CSV Files To A SQL Database Pin
Roger Wright2-Oct-10 21:41
professionalRoger Wright2-Oct-10 21:41 
AnswerRe: Importing .CSV Files To A SQL Database Pin
dan!sh 2-Oct-10 23:14
professional dan!sh 2-Oct-10 23:14 
AnswerRe: Importing .CSV Files To A SQL Database Pin
Luc Pattyn3-Oct-10 2:51
sitebuilderLuc Pattyn3-Oct-10 2:51 
GeneralRe: Importing .CSV Files To A SQL Database Pin
Roger Wright4-Oct-10 20:04
professionalRoger Wright4-Oct-10 20:04 
GeneralRe: Importing .CSV Files To A SQL Database Pin
Luc Pattyn5-Oct-10 1:55
sitebuilderLuc Pattyn5-Oct-10 1:55 
AnswerRe: Importing .CSV Files To A SQL Database Pin
PIEBALDconsult3-Oct-10 3:49
mvePIEBALDconsult3-Oct-10 3:49 
QuestionForeach Pin
Saksida Bojan2-Oct-10 6:29
Saksida Bojan2-Oct-10 6:29 
AnswerRe: Foreach Pin
Abhinav S2-Oct-10 6:44
Abhinav S2-Oct-10 6:44 
GeneralRe: Foreach Pin
Saksida Bojan2-Oct-10 6:54
Saksida Bojan2-Oct-10 6:54 
GeneralRe: Foreach Pin
Luc Pattyn2-Oct-10 6:59
sitebuilderLuc Pattyn2-Oct-10 6:59 
GeneralRe: Foreach Pin
Saksida Bojan2-Oct-10 7:06
Saksida Bojan2-Oct-10 7:06 
AnswerRe: Foreach Pin
Luc Pattyn2-Oct-10 6:57
sitebuilderLuc Pattyn2-Oct-10 6:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.