Click here to Skip to main content
15,881,757 members
Home / Discussions / C#
   

C#

 
AnswerRe: status strip - show some text Pin
Thomas Stockwell2-May-08 10:39
professionalThomas Stockwell2-May-08 10:39 
QuestionDynamically add a property item to Property Grid Pin
Varad_Rajan1-May-08 20:02
Varad_Rajan1-May-08 20:02 
AnswerRe: Dynamically add a property item to Property Grid Pin
visualhint6-May-08 5:46
visualhint6-May-08 5:46 
QuestionNeed Help on Writing to New Line Pin
Thomas Toh1-May-08 17:59
Thomas Toh1-May-08 17:59 
AnswerRe: Need Help on Writing to New Line Pin
PIEBALDconsult1-May-08 19:05
mvePIEBALDconsult1-May-08 19:05 
AnswerRe: Need Help on Writing to New Line Pin
Christian Graus1-May-08 19:32
protectorChristian Graus1-May-08 19:32 
AnswerRe: Need Help on Writing to New Line Pin
Luc Pattyn1-May-08 22:26
sitebuilderLuc Pattyn1-May-08 22:26 
QuestionComboBox in Datagrid view Pin
cocoonwls1-May-08 17:18
cocoonwls1-May-08 17:18 
Hi all,
Basically i have 2 question in this message.I am using DataGridViewComboBoxColumn to insert a ComboBox into my datagridview.Code as below:
dataGridView1.Columns.Remove("Seqence_Number");  <----remove the original column first before add the combo box
DataGridViewComboBoxColumn dgvComboBox = new DataGridViewComboBoxColumn();
dgvComboBox.DataPropertyName = "Seqence_Number";
dgvComboBox.HeaderText = "Sequence (Stage)";
dgvComboBox.DropDownWidth = 100;
dgvComboBox.Width = 100;
dgvComboBox.MaxDropDownItems = 10;
dgvComboBox.FlatStyle = FlatStyle.System;

dsTemp = singleton.ProdetailsDataset.Copy();  <-----dataset will copy from my singleton class
dgvComboBox.DataSource = dsTemp.Tables[0];
dgvComboBox.ValueMember = "Stage_Name";
dgvComboBox.DisplayMember = "Stage_Name";

dataGridView1.Columns.Insert(1,dgvComboBox);


The first question is, how can i display more than one value member in ComboBox?

The second qeustion is, how can i do a selected event for that ComboBox in datagridview? what i wanna do is when user select the value in ComboBox, some event will fire to validate the value which selected by user.


Any tips are welcome,
Thanks in advance
AnswerRe: ComboBox in Datagrid view Pin
Gopal.S1-May-08 21:12
Gopal.S1-May-08 21:12 
GeneralRe: ComboBox in Datagrid view Pin
cocoonwls1-May-08 22:45
cocoonwls1-May-08 22:45 
QuestionMember Function Pointers usage on class instances: Pin
Net Guy1-May-08 17:14
Net Guy1-May-08 17:14 
AnswerRe: Member Function Pointers usage on class instances: Pin
Christian Graus1-May-08 17:19
protectorChristian Graus1-May-08 17:19 
QuestionReflection Question Pin
MrColeyted1-May-08 16:49
MrColeyted1-May-08 16:49 
AnswerRe: Reflection Question Pin
PIEBALDconsult1-May-08 19:07
mvePIEBALDconsult1-May-08 19:07 
GeneralRe: Reflection Question Pin
MrColeyted1-May-08 19:22
MrColeyted1-May-08 19:22 
AnswerRe: Reflection Question Pin
J a a n s1-May-08 22:35
professionalJ a a n s1-May-08 22:35 
GeneralRe: Reflection Question Pin
MrColeyted1-May-08 23:00
MrColeyted1-May-08 23:00 
QuestionXSD class generation tool Pin
cbadal1-May-08 15:52
cbadal1-May-08 15:52 
AnswerRe: XSD class generation tool Pin
cbadal3-May-08 5:20
cbadal3-May-08 5:20 
AnswerRe: XSD class generation tool Pin
sri_00997-Jan-10 19:55
sri_00997-Jan-10 19:55 
Questionpassing argmumnet to cmd from and application Pin
Naveed7271-May-08 14:58
Naveed7271-May-08 14:58 
AnswerRe: passing argmumnet to cmd from and application Pin
Ennis Ray Lynch, Jr.1-May-08 15:03
Ennis Ray Lynch, Jr.1-May-08 15:03 
GeneralRe: passing argmumnet to cmd from and application Pin
Naveed7271-May-08 21:40
Naveed7271-May-08 21:40 
AnswerRe: passing argmumnet to cmd from and application Pin
Luc Pattyn1-May-08 22:36
sitebuilderLuc Pattyn1-May-08 22:36 
QuestionTransfer info from Form1 to Form2 Pin
nelsonpaixao1-May-08 14:35
nelsonpaixao1-May-08 14:35 

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.