469,945 Members | 1,660 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,945 developers. It's quick & easy.

Grid on ColumnHeader click making the grid row to edit mode

Hi,
I saw that in Windows Forms DataGrid with new row
creation set to true, if I have added a new row earlier
which was empty and deleted the row and shifted the focus
to any other control and then clicking on the column
header of the grid is making the grid to go to edit mode
which is causing the first row to be ready for allowing
user input. Does anybody of you know how to stop this
behaviour, i.e., new row should not be put into edit mode
if I click on the column header. Please help me if you can
stop that.

Steps to Reproduce :

1) Create a grid with column sorting set to false in the
tablestyles
2) Set a DataTable with no rows to the grid such that grid
allows new row creation
3) Start editing the first row on the grid and delete the
row, now only one row with * mark on row header exists
4) Now shift focus to anyother control, then shift focus
to grid by clicking on any column header.
5) Now see that the first row (only row) in the grid is
turned to edit mode, no more '*' in the row header but the
triangle appears.

I want to stop that, even if they click on the column
header the '*' row should be there, it should turn to
current row. It should allow for editing only when I click
on a cell or the row header.
Anybody plz help

Thanks in Advance,
Shravan.
Nov 15 '05 #1
0 1472

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Filippo Pandiani | last post: by
reply views Thread by Monika Mesik | last post: by
3 posts views Thread by Woody Splawn | last post: by
3 posts views Thread by Mayte | last post: by
reply views Thread by serge calderara | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.