I need to be able to tell if the blank row of a DataGrid has been edited or
not.
In a DataGrid, you may notice that if you click on the asterisk row, the
asterisk will change to a triangle, but no "new" blank asterisked row will be
added to the bottom *until* you type some data. How can I tell if you have
begun to type data into this row or not?
Here is the reason I need this. I need to call
CurrencyManager .EndCurrentEdit () on a row before I programmaticall y update/add
it to the datastore. This is so EndCurrentEdit( ) can auto-check for columns
that have their AllowDBNull set to false. The problem is that EndCurrentEdit( )
checks for this condition and complains, regardless of whether somebody has
entered data into the blank row or not.
The Microsoft code does not do this. E.g. if you are on the "last" row of the
datagrid, but have not entered data, and you click somewhere else on the form,
no error message appears (but it will complain if you have entered data).
I stepped through the Microsoft assembly code to find out why this is, and
discovered (surprise surprise) that the Microsoft code has some private
esoteric function calls that somehow check the state of this row before
deciding to call EndCurrentEdit( ). That is, if you are on the blank row, but
have not entered any data, the Microsoft code does NOT call EndCurrentEdit( ).
BUT, if you have entered some data in the blank row, the Microsoft code DOES
call EndCurrentEdit( ).
I want to check for this condition too, but I can't figure out how they are
doing it. Does anyone know what test I need to make, or if it is even possible?
Please, please someone let me know, this is driving me crazy!
--
Junkguy 0 1267 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Sarah Michael |
last post by:
Hi,
I am running the following code to set a cookie but it is not working,
please
help me sorting out the problem. The code is from an online article
http://www.devarticles.com/art/1/639
I am using Windows 2000 SP5, PHP 4.2.3, MYSQL 4.0.13-nt, apache 2.0.45
|
by: milkyway |
last post by:
Hello,
I have an HTML page that I am trying to import 2 .js file (I created)
into. These files are: row_functions.js and data_check_functions.js.
Whenever I bring the contents of the files into this HTML file, all is
OK but whenever the functions are separated (as it is now), when I run
the page, I get the following error:
Line 73, object expected.
|
by: Eric |
last post by:
Is it possible to start with a blank datagrid and enter the information like an excel spread sheet? This doesn't seem to be the case. If it doesn't work that way, is there another control I can use other than inserting a spread sheet?
|
by: Eddy Soeparmin |
last post by:
Hi,
I need to display a DateTime field in 'mm/dd/yyyy' in a DataGrid.. On
myGrid1 - Properties - Columns - myColumn1 - Text format string:
I tried to put 'mm/dd/yyyy' in there and it displays 'mm/dd/yyyy' in stead
of '04/10/2001'. I know I didn't do it right. Please let me know what's the
correct way to display a 'mm/dd/yyyy' format for a DateTime coulmn.
Thanks.
|
by: I am Sam |
last post by:
Ok I set up a button column to delete an individual record. Nothing happens
when I test it. Someone please help understand why. Below is the associated
coding:
DataGrid control:
<asp:datagrid id="clubdg" DataKeyField="UserID" runat="server"
GridLines="Vertical" CellPadding="2" BorderWidth="1px"
BorderColor="#CCCCFF" CssClass="txt"
AutoGenerateColumns="False" OnCancelCommand="Cancel_Click"
| |
by: Brad Shook |
last post by:
First of all thinks to Cor Ligthert for helping me with this last week.
If you wild like to read Cor's comments please refer to the posting from
10/14/2004 and 8:48AM "Help with Advanced Datagrid"
I am trying to bind one column of a datagrid to a seperate textbox and
the rest of the fields to a datagrid. the comments are too large to
fit in a datagrid so I created a textbox below the datagrid and need
it to hold the data for the...
|
by: NewYorker |
last post by:
Hello brothers and sisters,
Please help me complete this program and get the output shown below.
Here is all I have
___________________________________________________________
This homework involves reading sentences from a file and determining the makeup of the sentences, words and characters.
1. First, you will read in the sentences with the function
void readSentences(string sentences, int &numSentences)
|
by: princessfrost |
last post by:
Can someone please help tell me how to make my code into 2-3 multiple java files? I really don't know how to break it up and I am afraid if I do, I'll mess it up and have to start all over again. So if any could please help me it would be greatly appreciated.
|
by: neilfarah |
last post by:
This is a xmlDoc.load routine through either IE or Firefox. An RSS URL is loaded into a form. After Onclick of a button a second window is launched and a parsed listing of the original RSS file is supposed to display in a separate window. But I am getting a blank page instead. I've tried this hundred of different waya, including using innerHTML, and or shifting the javascript to the bottom of the page (I thought it might have something to do...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |