Click here to Skip to main content
15,918,193 members
Home / Discussions / C#
   

C#

 
GeneralRe: what is the problem in this >>> see the code and pls help me Pin
Christian Graus4-Oct-09 21:23
protectorChristian Graus4-Oct-09 21:23 
GeneralRe: what is the problem in this >>> see the code and pls help me Pin
amaankhan4-Oct-09 21:32
amaankhan4-Oct-09 21:32 
GeneralRe: what is the problem in this >>> see the code and pls help me Pin
amaankhan4-Oct-09 21:37
amaankhan4-Oct-09 21:37 
GeneralRe: what is the problem in this >>> see the code and pls help me Pin
Christian Graus4-Oct-09 21:37
protectorChristian Graus4-Oct-09 21:37 
GeneralRe: what is the problem in this >>> see the code and pls help me Pin
amaankhan4-Oct-09 21:42
amaankhan4-Oct-09 21:42 
GeneralRe: what is the problem in this >>> see the code and pls help me Pin
Christian Graus4-Oct-09 22:17
protectorChristian Graus4-Oct-09 22:17 
GeneralRe: what is the problem in this >>> see the code and pls help me Pin
amaankhan4-Oct-09 22:20
amaankhan4-Oct-09 22:20 
QuestionWinform DataGridView Host EXTCombo problem Pin
link27sea4-Oct-09 21:01
link27sea4-Oct-09 21:01 
I am writing a DGV which uses the MultiSelect ComboBox code (available from here: http://www.codeguru.com/csharp/csharp/cs_controls/treeview/article.php/c15373/)

I hosted the Control following this MSDN tutorial :
http://msdn.microsoft.com/en-us/library/7tas5c80.aspx

What i've done is this:

- Editng EXTCombo and MultiSelect4Combo Constructor

public EXTCombo()
{
_multiselectList=new MultiSelect4Combo();
this.AddControl(_multiselectList);
this.LoadChildControl);
}
public MultiSelect4Combo()
{
InitializeComponent();
SelectionMode =SelectionMode.MultiExtended;
this.Items.Add("1");
this.Items.Add("2");
}

- Then make EXTCombo implements IDataGridViewEditingControl interface

- Through the EditingControlShowing event, get a reference to the editing control
OnEditingControlSHowing(..)
{
if (dataGridView1.CurrentCell.ColumnIndex==0)
EXTCombo _combo=e.Control as ComboBox;
if (_combo!=null)
{
_combo.SelectedIndexChanged +=OnSelectedIndexChanged;
}
}

OnSelectedIndexChanged(..)
{
string _slectedItems=(string)dataGridView1.CurrentCell.EditedFormatedValue;
dataGridView1.CurrentRow.Cell[0].Value=_selectedItems;
}

The problems are:
- After finish selecting in combobox and click another cell, the new value is not visible (in newly edited cell).
- All other cell (in same column) have the same value as the newly edited cell.
- OnSelectedIndexChanged is not Called at all

Can someone tell me how to fix this? thanks
QuestionPlaying scenarios in media player control Pin
Murthuja4-Oct-09 20:11
Murthuja4-Oct-09 20:11 
AnswerRe: Playing scenarios in media player control Pin
Christian Graus4-Oct-09 20:42
protectorChristian Graus4-Oct-09 20:42 
AnswerRe: Playing scenarios in media player control Pin
N a v a n e e t h4-Oct-09 20:43
N a v a n e e t h4-Oct-09 20:43 
GeneralRe: Playing scenarios in media player control Pin
Christian Graus4-Oct-09 20:46
protectorChristian Graus4-Oct-09 20:46 
GeneralRe: Playing scenarios in media player control Pin
N a v a n e e t h4-Oct-09 20:51
N a v a n e e t h4-Oct-09 20:51 
GeneralRe: Playing scenarios in media player control Pin
Christian Graus4-Oct-09 21:09
protectorChristian Graus4-Oct-09 21:09 
QuestionCustom monthCalendar control Pin
d.project4-Oct-09 13:07
d.project4-Oct-09 13:07 
AnswerRe: Custom monthCalendar control Pin
Nisha Agrawal4-Oct-09 20:08
Nisha Agrawal4-Oct-09 20:08 
QuestionProblem with Hierarchical Update with entity framework Pin
hdv2124-Oct-09 12:09
hdv2124-Oct-09 12:09 
AnswerRe: Problem with Hierarchical Update with entity framework Pin
Mycroft Holmes4-Oct-09 15:14
professionalMycroft Holmes4-Oct-09 15:14 
Questionhow to block pc on network from another pc Pin
musicogui4-Oct-09 11:50
musicogui4-Oct-09 11:50 
AnswerRe: how to block pc on network from another pc Pin
Christian Graus4-Oct-09 12:03
protectorChristian Graus4-Oct-09 12:03 
AnswerRe: how to block pc on network from another pc Pin
Pete O'Hanlon4-Oct-09 12:04
mvePete O'Hanlon4-Oct-09 12:04 
JokeRe: how to block pc on network from another pc Pin
nagendrathecoder4-Oct-09 19:12
nagendrathecoder4-Oct-09 19:12 
GeneralRe: how to block pc on network from another pc Pin
Pete O'Hanlon4-Oct-09 21:51
mvePete O'Hanlon4-Oct-09 21:51 
GeneralRe: how to block pc on network from another pc Pin
nagendrathecoder4-Oct-09 21:59
nagendrathecoder4-Oct-09 21:59 
Questionprotect connection string c# Form to remote sql server 2008 Pin
mutafa814-Oct-09 7:37
mutafa814-Oct-09 7:37 

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.