473,388 Members | 1,499 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,388 software developers and data experts.

DataGrid - New row event???

Some say there is no new row event for the VB.Net DataGrid. Hard to
believe! Is that really true?

I want to create a GUID in a hidden ID column when the user begins to
enter data into a new row.

The only way around I can think of is to test if the ID column is null
any time a cells in a row is being edited, but it seems like the wrong
way about it to perform that test for any edit in any row.

Any suggestions?
Nov 22 '05 #1
2 2489
Since it'a datagrid can we assume that it's bound to a datatable (or
dataset?). Would it be possible for you to work with the source data object
events rather than the GUI grid? Maybe the DataTable ColumnChanged event
would be worth looking into.
Just as a tip, take it as you will, the datagrid and flexgrid controls that
ship with Visual Studio are really freeware and crippled versions of the
ComponentOne TrueDBGridPro and FlexGrid Pro (as is the print preview
control). Once you move to the full versions you get a heck of a lot more
power.

Personally, many many years ago I used TrueDBGrid (then from APEX) but then
I discovered FlexGridPro from Videosoft and once it supported databinding I
never found a significant reason to go back. A few years ago APEX and
Videosoft merged and became ComponentOne. Both of these fine grids now are
part of the ComponentOne Studio Suite.

Here's the thing: http://msdn.microsoft.com/vbasic/vbrkit/default.aspx

If you don't have this important free download from Microsoft (which gives
you distribution rights to these controls), you should get it before they
take it away because it gives you the real, full TrueDBGrid and, even
better, FlexGrid Pro .. no more limitations and no more silly DataGrid
hacks.

Robert Smith
Kirkland, WA
www.smithvoice.com

"Douglas Buchanan" <db*********@hotmail.com> wrote in message
news:72**************************@posting.google.c om...
Some say there is no new row event for the VB.Net DataGrid. Hard to
believe! Is that really true?

I want to create a GUID in a hidden ID column when the user begins to
enter data into a new row.

The only way around I can think of is to test if the ID column is null
any time a cells in a row is being edited, but it seems like the wrong
way about it to perform that test for any edit in any row.

Any suggestions?

Nov 22 '05 #2
Smith,
Would it be possible for you to work with the source data object
events rather than the GUI grid? Maybe the DataTable ColumnChanged event would be worth looking into.
Thank you for that tip!

BTW Thank you. I have downloaded the controls. They look promising.
Now I have to learn their functionality.

-- Doug

"smith" <rc********@smithvoiceTAKEOUT.com> wrote in message news:<uT*******************@newsread1.news.pas.ear thlink.net>... Since it'a datagrid can we assume that it's bound to a datatable (or
dataset?). Would it be possible for you to work with the source data object
events rather than the GUI grid? Maybe the DataTable ColumnChanged event
would be worth looking into.
Just as a tip, take it as you will, the datagrid and flexgrid controls that
ship with Visual Studio are really freeware and crippled versions of the
ComponentOne TrueDBGridPro and FlexGrid Pro (as is the print preview
control). Once you move to the full versions you get a heck of a lot more
power.

Personally, many many years ago I used TrueDBGrid (then from APEX) but then
I discovered FlexGridPro from Videosoft and once it supported databinding I
never found a significant reason to go back. A few years ago APEX and
Videosoft merged and became ComponentOne. Both of these fine grids now are
part of the ComponentOne Studio Suite.

Here's the thing: http://msdn.microsoft.com/vbasic/vbrkit/default.aspx

If you don't have this important free download from Microsoft (which gives
you distribution rights to these controls), you should get it before they
take it away because it gives you the real, full TrueDBGrid and, even
better, FlexGrid Pro .. no more limitations and no more silly DataGrid
hacks.

Robert Smith
Kirkland, WA
www.smithvoice.com

"Douglas Buchanan" <db*********@hotmail.com> wrote in message
news:72**************************@posting.google.c om...
Some say there is no new row event for the VB.Net DataGrid. Hard to
believe! Is that really true?

I want to create a GUID in a hidden ID column when the user begins to
enter data into a new row.

The only way around I can think of is to test if the ID column is null
any time a cells in a row is being edited, but it seems like the wrong
way about it to perform that test for any edit in any row.

Any suggestions?

Nov 22 '05 #3

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

Similar topics

0
by: Emerson | last post by:
The following assumes a System.Windows.Forms.DataGrid with a System.Data.DataTable set as the DataSource. I'm programming in C# Here's my scenario I click in a cell on a DataGrid. I enter some...
1
by: GregM | last post by:
I have a read only datagrid that is designed to coordinate itself with textboxes. When the user clicks on a row in the datagrid, detailed data for that row is displayed for editing in the...
2
by: Dominic | last post by:
Hi guys, I'm not sure if this question belongs to FAQ, but I couldn't find a concrete answer. I created a Datagrid control using ItemTemplate, but it's NOT a in-place editing datagrid. One of...
3
by: vinayak | last post by:
Hi I am displaying data in Datagrid in ASP.NET with Edit/Update functionality for each row. On the same page I have 2 Button controls which submits the request to server. These button controls...
7
by: Scott Schluer | last post by:
Hi All, I have a functioning datagrid on "Page 1" that displays order information for a single order (this is for an e-commerce site). It's actually a combination of a couple datagrids to...
4
by: The Alchemist | last post by:
I am having a problem with a dynamically-generated Datagrid. It is important to point out that this problem does not exist with a design-time created Datagrid, but only with a dynamically generated...
1
by: sianan | last post by:
I tried to use the following example, to add a checkbox column to a DataGrid in an ASP.NET application: http://www.codeproject.com/aspnet/datagridcheckbox.asp For some reason, I simply CAN'T get...
4
by: Suzanne | last post by:
Hi all, I'm having problems with datagrids and the currentcellchanged event. My problem is this: I have a datagrid on a form, if the user changes the text in a cell on the datagrid then tries to...
4
by: Jeff User | last post by:
Hi I tryed to solve this problem over in the framework.asp group, but still am having trouble. Hope someone here can help. using .net 1.1, VS 2003 and C# I have an asp.DataGrid control with a...
9
by: rn5a | last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB table. Users can modify the records using this DataGrid for which I am using EditCommandColumn in the DataGrid. This is the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
jinu1996
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...

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.