473,670 Members | 2,343 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 961
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****@christi an.netwrote in message
news:eI******** ******@TK2MSFTN GP04.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
1485
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 the body of these tables using a DataGrid, so I can dynamically add rows to the table without modifying the HTML. Now, I want to put this DataGrid into a user control that I can include in the HTML code, then control the behavior of that DataGrid...
5
2274
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.. AC
3
1745
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
3632
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. Question: How can I dynamically change the width's of these columns? Thanks in advance.
2
1717
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 it to look like the following where the URL column is clickable. ---------------------------------------------
1
1716
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 all possible columns with a checkbox. The admin would check the checkboxes for each column they want to display in the grid. My question is where should I save these settings ( in XML or SQL Server?). Also when these settings are changed, how can...
1
2086
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 do format because it's in a Datagrid pager area. The html code generated for pager is one sigle cell with lots of colspan. I tried to add some html elements in between text and dropdownlist, for example table iframe and p but I cannot achieve...
13
1849
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 query: OleDbDataAdapter1.SelectCommand.CommandText = & _ "Select illNameE From tblIllness" OleDbDataAdapter1.Fill(DsIllness1) But in my datagrid, I get (null) for other ccolumns instead
5
2896
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, I am appending all the directories with 0 & all the files with 1. Moreover, each directory & file listed in the DataGrid will have a corresponding CheckBox. To differentiate between directories & files, I am adding the string "*D" (without the...
8
1253
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: <asp:datagrid id="dgProducts" runat="server"> <asp:ButtonColumn Text="Details" CommandName="Details" ButtonType="PushButton"></asp:ButtonColumn> </asp:datagrid>
0
8386
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8903
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8592
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8661
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7419
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4211
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4391
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2042
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1794
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.