472,331 Members | 1,725 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,331 software developers and data experts.

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 1533

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Filippo Pandiani | last post by:
I have a grid that shows the file list from a folder. On the postback, how do I get a Dataset from this grid? Thanks, Filippo.
0
by: Monika Mesik | last post by:
I have made some progress toward creating very straight-forward UI for editing a non-hierarchical list of data without implementing a DataGrid. The...
4
by: Bazza Formez | last post by:
Hi there, What determines the sizes of rows / columns / cells when a grid is in edit mode ? When I click the edit command of a row item, the...
3
by: Woody Splawn | last post by:
I don't know what it's called when the little pencil shows up in the Row Selector portion of the grid but to me it indicates that the user is in...
1
by: Roger | last post by:
Have a grid and when I edit a grid row it goes into edit mode. Once I attempt to click a button on the form; once the grid losses focus, it fires my...
2
by: Luqman | last post by:
How can I put GridView and DetailView control to Edit Mode with one click of button ? I don't want to show built-in Edit Buttons of above...
3
by: Mayte | last post by:
`I need a GridView that lets you edit any part of it , without having to click "Edit" for each individual row. Like a spreadsheet. Thanks What...
0
by: serge calderara | last post by:
Dear all, I have an application which collect information from a database and display them in a dagrid. I have apply to the grid a DataView...
1
by: rogerford | last post by:
I have a grid which i bind with values from Database. I have events to edit and update the grid. I am not using SqlDatasource to connect to DB....
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.