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

C#

 
AnswerRe: I need help Pin
Christian Graus19-Feb-06 14:01
protectorChristian Graus19-Feb-06 14:01 
GeneralRe: I need help Pin
loncountrygirl19-Feb-06 14:45
loncountrygirl19-Feb-06 14:45 
GeneralRe: I need help Pin
loncountrygirl19-Feb-06 14:49
loncountrygirl19-Feb-06 14:49 
GeneralRe: I need help Pin
Sean8919-Feb-06 15:07
Sean8919-Feb-06 15:07 
AnswerRe: I need help Pin
Jijo BP19-Feb-06 21:32
Jijo BP19-Feb-06 21:32 
GeneralRe: I need help Pin
J4amieC19-Feb-06 21:37
J4amieC19-Feb-06 21:37 
Questionproblem: System.Runtime.InteropServices.COMException Pin
edel_ong19-Feb-06 13:35
edel_ong19-Feb-06 13:35 
QuestionC# 2005 - DataGridView and ComboBoxes questions Pin
JC Carmo19-Feb-06 11:31
JC Carmo19-Feb-06 11:31 
Hello everyone,

Greetings from Brazil! Please help! I have a DataGridView in a windows form with three columns:

Column1 is TipoComboBoxColumn
Column2 is QuantidadeColumn
Column3 is SementeComboBoxColumn

I need the SementeComboBoxColumn to display values according to the value I select in the TipoComboBoxColumn.

How do I go about accomplishing that? The code below works in part, BUT when I'm editing the value of SementeComboBoxColumn, the other values in this column disappearin the other rows.



private void tabBAdetDataGridView_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (tabBAdetDataGridView.Columns[e.ColumnIndex].Name == "EspecieComboBoxColumn")
{
this.tabSementesTableAdapter.FillByTipo(this.sascrDataSet.tabSementes, tabBAdetDataGridView.Rows[e.RowIndex].Cells["TipoComboBoxColumn"].Value.ToString());
this.EspecieComboBoxColumn.DataSource = this.tabSementesBindingSource;
this.EspecieComboBoxColumn.DisplayMember = "Semente";
}
else
{
this.tabSementesTableAdapter.Fill(this.sascrDataSet.tabSementes);
this.EspecieComboBoxColumn.DataSource = this.tabSementesBindingSource;
this.EspecieComboBoxColumn.DisplayMember = "Semente";
}
}



Thanks in advance,

JC Carmo
QuestionWindows Hooks Pin
all4fun219-Feb-06 9:53
all4fun219-Feb-06 9:53 
QuestionResources, namespaces, C# Pin
magja19-Feb-06 8:05
magja19-Feb-06 8:05 
AnswerRe: Resources, namespaces, C# Pin
[Marc]19-Feb-06 13:38
[Marc]19-Feb-06 13:38 
GeneralRe: Resources, namespaces, C# Pin
magja19-Feb-06 23:10
magja19-Feb-06 23:10 
GeneralRe: Resources, namespaces, C# Pin
[Marc]20-Feb-06 7:57
[Marc]20-Feb-06 7:57 
Questionscrolling my custom control Pin
Susuko19-Feb-06 7:04
Susuko19-Feb-06 7:04 
QuestionReading Metadata Pin
Shaurya Rastogi19-Feb-06 3:47
Shaurya Rastogi19-Feb-06 3:47 
AnswerRe: Reading Metadata Pin
User 665819-Feb-06 7:15
User 665819-Feb-06 7:15 
Questionsending values between forms Pin
rmedo19-Feb-06 2:46
rmedo19-Feb-06 2:46 
AnswerRe: sending values between forms Pin
gnjunge19-Feb-06 2:56
gnjunge19-Feb-06 2:56 
GeneralRe: sending values between forms Pin
rmedo19-Feb-06 3:29
rmedo19-Feb-06 3:29 
QuestionDetect Edges Pin
haytham_mohammad19-Feb-06 1:48
haytham_mohammad19-Feb-06 1:48 
AnswerRe: Detect Edges Pin
Guffa19-Feb-06 2:07
Guffa19-Feb-06 2:07 
GeneralRe: Detect Edges Pin
haytham_mohammad19-Feb-06 5:27
haytham_mohammad19-Feb-06 5:27 
GeneralRe: Detect Edges Pin
Guffa19-Feb-06 6:16
Guffa19-Feb-06 6:16 
AnswerRe: Detect Edges Pin
Christian Graus19-Feb-06 8:26
protectorChristian Graus19-Feb-06 8:26 
AnswerRe: Detect Edges Pin
A.A.19-Feb-06 21:10
A.A.19-Feb-06 21:10 

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.