473,398 Members | 2,393 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 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 1601

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 UI needs to present the data for editing in...
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 whole grid 'bounces' to a much larger size... and...
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 edit mode. I would like to detect this condition...
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 beforerowupdate event. Runs through my code, but...
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 controls. Best Regards, Luqman
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 do I do?
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 object to get filtered information and bind the grid...
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. Rather i am doing the updating of the grid...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.