473,513 Members | 2,595 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Question on datagrid columns

I'm writing an application where users will input data into a SQL table.
They'll be entering customer data and a purchase order number.
When they submit the PO, it shows a datagrid with the PO number showing.

I've since been asked to write something in SQL to match up the purchase
orders against another order table. That will be in a batch job
overnight. In my sql table, I plan to set bit switches that will note
if it automatically matches up on the nightly run. If it doesn't, there
is another bit switch I am putting in the table that I want to let them
check in order to allow them to say they've manually reconciled the issue.

What I want to do:

On the day an order is entered, I do NOT want the Manual Reconcile bit
switch (I guess a checkbox) to show. However, in this same datagrid, I
do want the ones that have gone thru a matchup over night which did not
automatically match out, to show up with the "Manual Reconcile" switch
where it can be selected/set by the user when they update the order.

If an order has been entered during the day, I do NOT want this
box/switch to be selectable, I want it to have to go thru the match out
over night. However, there are two other boxes on that datagrid that I
do want to be editable at any time. The Manual Reconcile switch I only
want to be enabled when the day of the order is not equal to today.

Is there a way to do this, and if so, how?

Thanks,

BC
Feb 2 '07 #1
1 957
Set up the code to not show the switch if it has not attempted to reconcile
yet. This could be accomplished in one of two ways.

1. Another bit field/boolean that tells if checked
2. Change the flag to an integral value, so there are multiple possible
states for a PO

Either way, you check the value prior to displaying the manual checkbox.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

********************************************
Think outside the box!
********************************************
"Blasting Cap" <go****@christian.netwrote in message
news:eI**************@TK2MSFTNGP04.phx.gbl...
I'm writing an application where users will input data into a SQL table.
They'll be entering customer data and a purchase order number. When they
submit the PO, it shows a datagrid with the PO number showing.

I've since been asked to write something in SQL to match up the purchase
orders against another order table. That will be in a batch job
overnight. In my sql table, I plan to set bit switches that will note if
it automatically matches up on the nightly run. If it doesn't, there is
another bit switch I am putting in the table that I want to let them check
in order to allow them to say they've manually reconciled the issue.

What I want to do:

On the day an order is entered, I do NOT want the Manual Reconcile bit
switch (I guess a checkbox) to show. However, in this same datagrid, I do
want the ones that have gone thru a matchup over night which did not
automatically match out, to show up with the "Manual Reconcile" switch
where it can be selected/set by the user when they update the order.

If an order has been entered during the day, I do NOT want this box/switch
to be selectable, I want it to have to go thru the match out over night.
However, there are two other boxes on that datagrid that I do want to be
editable at any time. The Manual Reconcile switch I only want to be
enabled when the day of the order is not equal to today.

Is there a way to do this, and if so, how?

Thanks,

BC

Feb 2 '07 #2

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

Similar topics

0
1473
by: Jason | last post by:
I am pretty new to C# so bare with me... The design of my website utilizes tables on every page that look almost identical, save the data they are displaying. I have written the code to create...
5
2260
by: AC | last post by:
Any reason i'm having trouble with: DataGrid1.Columns(7).ItemStyle.HorizontalAlign = HorizontalAlign.Right I'm trying to directly set the column alignment of a datagrid created at runtime.. ...
3
1739
by: DC | last post by:
Dear ASP.Net Experts, In ASP, I can write something like this: <table> <tr> <th align=left>ID</th> <th align=left>Product Name</th> <th align=left>Price</th> </tr> <%
5
3625
by: VB Programmer | last post by:
I have a simple datagrid on a webform. (I'm using VB.NET.) In the page load I get some data, set the .DataSource property of the dg, then do a .DataBind. The columns are automatically created. ...
2
1712
by: Alex | last post by:
I'm reposting my issue with some more info. I would like to use a DataGrid to display my DataSet. My DataSet is from a table in a SQL DB. Both columns in the table are strings. I would like...
1
1708
by: Nikhil Patel | last post by:
Hi all, What is the best way to allow the administrator of the application to select which columns are displayed in a Databound grid in an aspx form. I was thinking of creating a form and display...
1
2073
by: strout | last post by:
I know it's dumb ... sometimes frustrating I want the text and a dropdownlist align with both side of a table cell, i.e. text align left and dropdownlist align right. I cannot add more cells to...
13
1839
by: Saber | last post by:
I did a lot of searches and read something about datagrids. But I couldn't find the answer of my simple question, how can I show only my desired columns of a table? for example I wrote this sql...
5
2862
by: rn5a | last post by:
In my application, I want to populate all the directories & files existing in a directory on the server in a DataGrid. To ensure that all the directories get listed first followed by all the files,...
8
1249
by: brock wade | last post by:
I have a Datagrid that is working fine displying my records, but I'm trying to program buttons on each record line to launch another web page that shows all the details for the product: ...
0
7260
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
7384
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
7525
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5685
agi2029
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,...
0
4746
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...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1594
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 ...
1
799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.