Wrox Programmer Forums
|
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 29th, 2008, 03:45 PM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
Default DataGridView column value

I am displaying a DataGridView using DataSet and call to a stored procedure. My stored procedure populates a temp table and result is being displayed in the DataGridView. Everything works fine except for following:

I am using alternating row color and the value in for "qty_delivered' column is zero at yellow lines and blank at white lines. Any ideas what could cause this?

Here is the table that is being read and fed to the DataGridView:

Code:
CREATE TABLE    #JobListTable
        (
            job_date datetime,
            job_number char(15),
            job_phase char(15),
            qty_delivered decimal(8,2),
            qty_received decimal(8,2),
                        plant_id char(10)
                                                )



           
Code:
EquentialCommand.CommandType =  CommandType.StoredProcedure
Code:
           EquentialCommand.CommandText = ("sp_GetJobList")
           EquentialCommand.Connection = EquentialConnection
           mySqlDataAdapter.SelectCommand = EquentialCommand
           mySqlDataAdapter.Fill(mySqlDataSet, "JobListTable")
           EquentialCommand.Parameters.Clear()
           EquentialConnection.Close()
           DataGridView1.DataSource = Nothing
           DataGridView1.Rows.Clear()
           DataGridView1.DataSource = mySqlDataSet.Tables("JobListTable")


 
Old January 29th, 2008, 07:00 PM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

I don't suppose its just white text on a white background?

/- Sam Judson : Wrox Technical Editor -/
 
Old January 30th, 2008, 09:44 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
Default

I am using alternating row color and the value in for "qty_delivered' column is zero at yellow rows and blank at white rows. Any ideas what could cause this?

 
Old January 30th, 2008, 10:06 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

The answer is no, unless you are displaying the qty_delivered column in white text on a white background.

/- Sam Judson : Wrox Technical Editor -/





Similar Threads
Thread Thread Starter Forum Replies Last Post
not showing column in datagridview jomet .NET Framework 2.0 6 March 15th, 2008 04:02 AM
DataGridView - allow column resize snufse .NET Framework 2.0 0 January 31st, 2008 10:33 AM
Datagridview & combobox column p2pmarit .NET Framework 2.0 1 July 31st, 2006 02:31 AM
check Box column in DataGridView control tiyyob .NET Framework 2.0 0 June 24th, 2006 09:49 AM
Add User Control in DatagridView Column HemaChaudhry Visual Basic 2005 Basics 0 January 23rd, 2006 08:43 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.