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