Click here to Skip to main content
15,437,002 members
Home / Discussions / C#
   

C#

 
AnswerRe: Python And/Or C#? Pin
Bernhard Hiller21-Feb-11 3:53
MemberBernhard Hiller21-Feb-11 3:53 
QuestionDefaulting and disabling WIA properties Pin
Etienne_12319-Feb-11 22:13
MemberEtienne_12319-Feb-11 22:13 
AnswerRe: Defaulting and disabling WIA properties Pin
Dalek Dave20-Feb-11 0:34
professionalDalek Dave20-Feb-11 0:34 
GeneralRe: Defaulting and disabling WIA properties Pin
Etienne_12320-Feb-11 19:46
MemberEtienne_12320-Feb-11 19:46 
QuestionExtract JSON stringify Pin
July moe19-Feb-11 2:21
MemberJuly moe19-Feb-11 2:21 
AnswerRe: Extract JSON stringify Pin
Richard MacCutchan19-Feb-11 2:59
mveRichard MacCutchan19-Feb-11 2:59 
AnswerRe: Extract JSON stringify Pin
Shahriar Iqbal Chowdhury/Galib19-Feb-11 5:13
professionalShahriar Iqbal Chowdhury/Galib19-Feb-11 5:13 
QuestionChanging the width of dataGridView Column Pin
Michael Waguih19-Feb-11 0:43
MemberMichael Waguih19-Feb-11 0:43 
Hi all,

I have two DataGridView in which I am setting its AutoSizeMode to Fill I want to change automatically the second DataGridView column Width the same as the first one change.

I tried these two cases:

private void dataGridView1_ColumnWidthChanged(object sender, DataGridViewColumnEventArgs e)
{
    dataGridView2.Columns[e.Column.Index].FillWeight = e.Column.FillWeight;
}


private void dataGridView1_ColumnWidthChanged(object sender, DataGridViewColumnEventArgs e)
{
    dataGridView2.Columns[e.Column.Index].Width = e.Column.Width;
}


In the two cases this error appear when loading the form that contains these two DataGridView :

This operation cannot be performed while an auto-filled column is being resized.

Thank you in advance,
Best regards,
Michael Waguih
Smile | :)

AnswerReason for my vote of one: Pin
OriginalGriff19-Feb-11 1:47
mveOriginalGriff19-Feb-11 1:47 
AnswerRe: Reason for my vote of one: Pin
Luc Pattyn19-Feb-11 3:30
sitebuilderLuc Pattyn19-Feb-11 3:30 
GeneralRe: Reason for my vote of one: Pin
OriginalGriff19-Feb-11 3:32
mveOriginalGriff19-Feb-11 3:32 
AnswerRe: Reason for my vote of one: Pin
Luc Pattyn19-Feb-11 3:58
sitebuilderLuc Pattyn19-Feb-11 3:58 
Questionevent handler in c# Pin
aeman18-Feb-11 22:00
Memberaeman18-Feb-11 22:00 
AnswerRe: event handler in c# Pin
Estys18-Feb-11 22:22
MemberEstys18-Feb-11 22:22 
GeneralRe: event handler in c# Pin
aeman18-Feb-11 22:32
Memberaeman18-Feb-11 22:32 
GeneralRe: event handler in c# Pin
I Believe In GOD18-Feb-11 22:56
MemberI Believe In GOD18-Feb-11 22:56 
GeneralRe: event handler in c# Pin
aeman18-Feb-11 23:02
Memberaeman18-Feb-11 23:02 
QuestionCopy Object Pin
Ramkumar_S18-Feb-11 16:29
MemberRamkumar_S18-Feb-11 16:29 
AnswerRe: Copy Object Pin
RobCroll18-Feb-11 18:46
MemberRobCroll18-Feb-11 18:46 
AnswerRe: Copy Object Pin
dan!sh 18-Feb-11 23:47
professional dan!sh 18-Feb-11 23:47 
QuestionCan not open the designer. It gives error Pin
arkiboys18-Feb-11 14:24
Memberarkiboys18-Feb-11 14:24 
AnswerRe: Can not open the designer. It gives error Pin
thatraja18-Feb-11 15:13
professionalthatraja18-Feb-11 15:13 
GeneralRe: Can not open the designer. It gives error Pin
arkiboys18-Feb-11 15:16
Memberarkiboys18-Feb-11 15:16 
QuestionIBasicVideo GetCurrentImage displaced Pin
Marcus Vatterott18-Feb-11 3:15
MemberMarcus Vatterott18-Feb-11 3:15 
AnswerRe: IBasicVideo GetCurrentImage displaced Pin
Luc Pattyn18-Feb-11 5:53
sitebuilderLuc Pattyn18-Feb-11 5:53 

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.