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

null row at end of datagrid table

21
i hv a datagrid to which i hv bound a table...i hv the table columns to be editable...i.e read only = false....now i hv a problem...in the table there seems to be a row at the end having no values automatically added...and it creates prob for me...i dont want that last null row to be present in the table...so how do i mk sure tat this last empty, null row dosent get attached to my table bound to the datagrid?

p.s. if i mk my datagrid as read only then the last null row in the table bound to it disappears...but then i cant make my table columns editable.

p.s. i am using ms-access backend database and in that also the tables hv a null row at the end. is it coz of this that when this table is bound to the datagrid it has an null row at the end?

how do i remove tat last null row off my table in the datagrid???

any suggestions wud be appreciated!

many thanks!
May 30 '07 #1
2 1707
Plater
7,872 Expert 4TB
I would say the null row at the end is something access adds.
When you open up your table in access there is always that blank row at the end where you are supposed to enter new data.

Is it an issue to have that null row? You can use it for adding new rows? Maybe find a way to "pop off" the row in the DataTable object? Perhaps mark it uneditable?

If you are using DataGrid to display the object, consider looking for DataGridView.
May 30 '07 #2
harini
21
the issue here is i dont mind hving an extra row at the end of the table in my access...but i dont want it in the table when i m binding it to a datagrid...it creates some probs like when i click on that null row and press the remove button tat row along with the row b4 it gets removed, etc...n it dosent look good hving a null empty row in the table in a datagrid!

i tried using the datatable obj...i cudnt find any option to mk that row alone uneditable or to pop it off...i wud be glad if i cud remove the whole last row! any info on tat wud be appreaciated...

n i havent worked with datagridviews...so how do i use it to remove the last null row off my datagrid table?

many thanks!
May 31 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Billy Jacobs | last post by:
I am using a datagrid to display some data. I need to create 2 header rows for this grid with columns of varying spans. In html it would be the following. <Table> <tr> <td colspan=8>Official...
0
by: gilly3 | last post by:
Reposting to a more relevant group. I am passing a generic dataset into a new XMLDataDocument and then parsing the XML with XSLT. The idea being that I can parse any dataset with the same xslt,...
1
by: J | last post by:
Situation - Using the table pubs.titleauthor in a strongly typed dataset, attached to a datagrid, using the datagrid I would like to set the royaltyper field = null (the database allows nulls in...
3
by: Diego TERCERO | last post by:
Hi... I'm working on a tool for editing text resources for a family of software product my company produces. These text resources are found in a SQL Server database, in a table called...
2
by: mdb | last post by:
I have a datagrid that is bound to a DataView, and it shows events and the times that event started ("StartTime") and stopped ("EndTime"). If the event has started but hasn't finished, then...
8
by: Sue | last post by:
I have a datagrid populated with 6 visible read-only labels and several hidden fields. Below the datagrid, I have a table with various textboxes, dropdowns, etc. I've managed to decypher the...
2
by: Marty McDonald | last post by:
When setting certain datagrid properties with the IDE (as in the property window), they don't seem to take effect. For instance, Font Name. So I have to set these via code-behind at the cell...
1
by: desmoduck | last post by:
Hey Group, I may just be suffering brain fade but I have searched around and not been able to find a solution. My difficulty: I have a datagrid that shows name, address, tel, fax and toll free...
5
by: M Skabialka | last post by:
I am creating my first Visual Studio project, an inventory database. I have created a form and used written directions to add data from a table to the form using table adapters, data sets, etc. ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.