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

Remove Detail in Datagrid,

My datagrid is bind to a datatable , and i need to remove the blank amount
before save()
Now, if my datatable got over 4000 records, It really take a long time to
remove each of them ,
Does any easier and smart way to do ? Thanks in advance

Dim drTemp As DataRow
FOR Each drTemp In dtRvDetail.Select("debit=0 and credit=0 and voucherno ='"
& Me.txtVoucherNo.Text.Trim & "' ")
dtRvDetail.Rows.Remove(drTemp)
Next
Nov 21 '05 #1
1 905
Agnes,

The speed of deleting rows from a datatable in Net 1.x is really bad. This
should be one of the improvements in 2.0. You can try to clone the table and
than not remove the rows however loop to the old and create a new one and
replace that in your dataset. If there is very much to remove that is
probably quicker.

I hope this helps,

Cor
Nov 21 '05 #2

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

Similar topics

1
by: | last post by:
Hi, i wanted to know how i could resolve the following error message: there in an error in my application when i am trying to retrieve a row a row from a detail table based on the key field...
0
by: Hari | last post by:
I have got a master detail datagrid in my application. When i select a row in a master table if there are no rows in detail table for the selected row in the master table then i want to give a...
1
by: Juan | last post by:
I built a form that displays a master-detail relation ship, now i need to add a column to the datagrid displaying the master data, this column corresponds to the text name of a column stored in the...
8
by: Christopher Weaver | last post by:
I'm having the hardest time doing the simplest thing. I have a DataGrid bound to a table in a master detail DataRelation within a DataSet relTaskActivities = new DataRelation("TaskActivities",...
2
by: Marcel | last post by:
Hi, I'm new to VS and ASP.NET and have a question about master/detail datagrids. I have a master datagrid filled with data via a component that contains a SQL adapter. Now I would like to fill...
1
by: solex | last post by:
Hello, I am trying (unsuccessfully) to display a Master-Detail-Detail records. The problem comes in the second detail grid. The first detail grid is displaying correctly but it is not...
1
by: Agnes | last post by:
I got master-detail datagrid in my datagrid (invoicedetail) , aim(as the user type the unit price or no of unit), the amount will be calculated and the TOTAL amount can be showed in the form at...
1
by: Agnes | last post by:
In my one datagrid, there is master - detail relationship. I can set dv.allownew = false, However, as the user click into detail, it can't set to allownew = false. Does anyone know how to solve it...
1
by: Larry Woods | last post by:
I have a combobox that is populated with a list of names. When a name is selected I want to populate a datagrid with name information. I have my master-detail defined in my dataset and it works...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...

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.