I'll try to initially ask this question without posting too much detail. I
have an asp.net datagrid that lists each row twice. What could cause this?
If you require additional information, please let me know and I'll be glad to
post it.
Thanks. 3 1406
The most normal reason is the lack of DISTINCT in a query with a JOIN
condition. Without seeing code, I cannot think of anything else that might
cause this issue.
---
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
***************************
Think Outside the Box!
***************************
"MrMike" wrote: I'll try to initially ask this question without posting too much detail. I have an asp.net datagrid that lists each row twice. What could cause this? If you require additional information, please let me know and I'll be glad to post it.
Thanks.
hi Mike,
Did u try changing the AutoGenerateColumns property to false,
regds,
Kannan.V
"MrMike" wrote: Cowboy, Here's the stored procedure which is populating the datagrid. Is there anything I can do to fix this? Thanks.
CREATE PROCEDURE dbo.spBundlesSelect ( @Parameter1 varchar(50) ) AS SET NOCOUNT ON;
SELECT tblBundles.*, tblLogs.*, lkup_CutType.Cut, lkup_Specie.*, lkup_Thickness.*, tblEmployees.Name, lkup_Figure.Figure, lkup_Grade.Grade, lkup_Vendors.*
FROM dbo.tblBundles INNER JOIN dbo.tblLogs ON dbo.tblBundles.FlitchNum = dbo.tblLogs.FlitchNum INNER JOIN dbo.lkup_CutType ON dbo.tblLogs.CutID = dbo.lkup_CutType.CutID INNER JOIN dbo.lkup_Thickness ON dbo.tblLogs.ThicknessID = dbo.lkup_Thickness.ThicknessID INNER JOIN dbo.tblEmployees ON dbo.tblLogs.WhoOrderedID = dbo.tblEmployees.EmployeeID INNER JOIN dbo.lkup_Specie ON dbo.tblLogs.SpecieID = dbo.lkup_Specie.SpecieID INNER JOIN dbo.lkup_Figure ON dbo.tblLogs.FigureID = dbo.lkup_Figure.FigureID INNER JOIN dbo.lkup_Grade ON dbo.tblLogs.GradeID = dbo.lkup_Grade.GradeID INNER JOIN dbo.lkup_Vendors ON dbo.tblLogs.VendorID = dbo.lkup_Vendors.VendorID
WHERE (tblBundles.FlitchNum = @Parameter1)
ORDER BY right(replicate(' ', 10) + tblBundles.BundleID + replicate(' ', isnumeric(right(tblBundles.BundleID, 1))), 10) /*Necessary to sort by bundleIDs w/ ...t... ...b...*/ GO
"Cowboy (Gregory A. Beamer) - MVP" wrote:
The most normal reason is the lack of DISTINCT in a query with a JOIN condition. Without seeing code, I cannot think of anything else that might cause this issue.
---
Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
*************************** Think Outside the Box! ***************************
"MrMike" wrote:
I'll try to initially ask this question without posting too much detail. I have an asp.net datagrid that lists each row twice. What could cause this? If you require additional information, please let me know and I'll be glad to post it.
Thanks.
The problem was actually that my SQLDataAdapter was being filled twice. I
corrected that and the datagrid stops showing tuplicate data. Thank you both
for your assistance!
"Kannan.V [MCAD.net]" wrote: hi Mike,
Did u try changing the AutoGenerateColumns property to false,
regds, Kannan.V
"MrMike" wrote:
Cowboy, Here's the stored procedure which is populating the datagrid. Is there anything I can do to fix this? Thanks.
CREATE PROCEDURE dbo.spBundlesSelect ( @Parameter1 varchar(50) ) AS SET NOCOUNT ON;
SELECT tblBundles.*, tblLogs.*, lkup_CutType.Cut, lkup_Specie.*, lkup_Thickness.*, tblEmployees.Name, lkup_Figure.Figure, lkup_Grade.Grade, lkup_Vendors.*
FROM dbo.tblBundles INNER JOIN dbo.tblLogs ON dbo.tblBundles.FlitchNum = dbo.tblLogs.FlitchNum INNER JOIN dbo.lkup_CutType ON dbo.tblLogs.CutID = dbo.lkup_CutType.CutID INNER JOIN dbo.lkup_Thickness ON dbo.tblLogs.ThicknessID = dbo.lkup_Thickness.ThicknessID INNER JOIN dbo.tblEmployees ON dbo.tblLogs.WhoOrderedID = dbo.tblEmployees.EmployeeID INNER JOIN dbo.lkup_Specie ON dbo.tblLogs.SpecieID = dbo.lkup_Specie.SpecieID INNER JOIN dbo.lkup_Figure ON dbo.tblLogs.FigureID = dbo.lkup_Figure.FigureID INNER JOIN dbo.lkup_Grade ON dbo.tblLogs.GradeID = dbo.lkup_Grade.GradeID INNER JOIN dbo.lkup_Vendors ON dbo.tblLogs.VendorID = dbo.lkup_Vendors.VendorID
WHERE (tblBundles.FlitchNum = @Parameter1)
ORDER BY right(replicate(' ', 10) + tblBundles.BundleID + replicate(' ', isnumeric(right(tblBundles.BundleID, 1))), 10) /*Necessary to sort by bundleIDs w/ ...t... ...b...*/ GO
"Cowboy (Gregory A. Beamer) - MVP" wrote:
The most normal reason is the lack of DISTINCT in a query with a JOIN condition. Without seeing code, I cannot think of anything else that might cause this issue.
---
Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
*************************** Think Outside the Box! ***************************
"MrMike" wrote:
> I'll try to initially ask this question without posting too much detail. I > have an asp.net datagrid that lists each row twice. What could cause this? > If you require additional information, please let me know and I'll be glad to > post it. > > Thanks. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: JochenZ |
last post by:
Hello,
I have a DataGrid(View) and a DataTable. The DataTable is displayed in the
DataGridView:
dataGridView.DataSource = theTable;
The user is allowed to select some rows and then the...
|
by: Junkguy |
last post by:
Hi all,
I need some advice on how to sort the contents of a datagrid from code. The
issue I have is a client that wants the datagrid to show its rows in "entry"
order (i.e. the order in which...
|
by: melanieab |
last post by:
Hi,
I'm programatically sorting in a datagrid. When a column header is clicked,
the sort happens twice for some reason, making it looks like it only sorts in
descending order. I can tell it...
|
by: tshad |
last post by:
I am having trouble with links in my DataGrid.
I have Links all over my page set to smaller and they are consistant all
over the page in both Mozilla and IE, except for the DataGrid.
Here is a...
|
by: Roy |
last post by:
Here's my problem for the curious consumption of the group mind... I
have an embedded datagrid which works fine. The child grid is nested
within the parent using a templatecolumn tag. Using the TR...
| |
by: tshad |
last post by:
I have a Datagrid that has no rows in it, but I want the title to show, and
they aren't.
Is there a way to make them visible even if the Datagrid is empty?
Thanks,
Tom
|
by: Kelly |
last post by:
Hi
I have a datagrid being filled by a data set from an access databas
First: The Column displayed in the datagrid are sorted like "Apple", "Carrot", "Deer", "Plum", "Number
Which is not the...
|
by: MrMike |
last post by:
I'll try to initially ask this question without posting too much detail. I
have an asp.net datagrid that lists each row twice. What could cause this?
If you require additional information, please...
|
by: |
last post by:
I have a question about spawning and displaying subordinate list controls
within a list control. I'm also interested in feedback about the design of
my search application. Lots of code is at the...
|
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: 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,...
| |
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,...
|
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,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
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...
|
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 ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |