Hi, Iam using Windows Applications. With my form DataGridView contains 35 columns. When the User Pressed Enter-Key, its focus to next Colum. But my requirement is when the control focused in
15th ColumnIndex I need to Frozen this 15th column, because the user need to refer the 15th Column with 24th Column. And hence is it possible?
I tried by the Following way.
Note :-
My Problem is when the control focused at 15th column, its get frozen at screen last right corner, therefore the 24th column cannot be viewed at screen, so I need to scroll the 15th column as Left Corner and the 24th column also can be displayed...
Any Better Ideas will be helpful !
Thanks
15th ColumnIndex I need to Frozen this 15th column, because the user need to refer the 15th Column with 24th Column. And hence is it possible?
I tried by the Following way.
C#:
private void myDataGrid1_CellEnter(object sender, DataGridViewCellEventArgs e){
if (e.ColumnIndex ==15){
myDataGrid1->Columns[15]->Frozen = true;
}
}
private void myDataGrid1_CellLeave(object sender, DataGridViewCellEventArgs e) {
if (e.RowIndex == 24) {
myDataGrid1->Columns[15]->Frozen = false;
}
}
Note :-
My Problem is when the control focused at 15th column, its get frozen at screen last right corner, therefore the 24th column cannot be viewed at screen, so I need to scroll the 15th column as Left Corner and the 24th column also can be displayed...
Any Better Ideas will be helpful !
Thanks
Last edited: