Solved

Data Grid HELP

Posted on 2004-09-17
4
134 Views
Last Modified: 2010-04-23
I am Currently using a DataGrid
I have Formatted the TextBox Columns

In One column InStock
The Values Range From:

null = Instock
o=Obsolete
A=Assigned new partnumber

What I need to do is?

If Instock = null
row,column instock has a checkmark or dot
If Instock = o
Then Instock = X
If Instock = A
Then the user can click on the A.
It will open another form(frm_newpartnumber)
and that for will have a dataset, prefill with a query to table that matches the pn of the row from the 1st form

I do not know how to format a column with checkmark or other if the data = "null, or o, or A"
pass a variable to another form such as the A
create a link for a value returned in a datagrid


I do know how to get an index of a checked row
i do know how to fill in the appropriate string into the query

THANKS,

MJ
0
Comment
Question by:malanois
  • 2
4 Comments
 
LVL 27

Expert Comment

by:planocz
Comment Utility
0
 
LVL 9

Accepted Solution

by:
checoo earned 500 total points
Comment Utility
have a look at the following link

http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp  thins will answer all your queries about datagrid. Even though the samples are in C#, but the code is self explanatory.

Regarding passing a parameter to another form, one way of achieving the same will be to modify the New() method of the second form to accept a parameter as shown in the folloiwng example.

in some event of Parent form have the following code --

dim aform as frm_newpartnumber
aform = new frm_newpartnumber(strPartNo)


and modify the new method of frm_newpartnumber as follows

Public Sub New(ByVal strPartnumber As string)
0
 

Author Comment

by:malanois
Comment Utility
Well the passing of the string to another form is correct.

However,  I cannot seem to get the c code converted over to VB...

MJ
0
 
LVL 9

Expert Comment

by:checoo
Comment Utility
check out this link for converting C# to VB.NET

http://authors.aspalliance.com/aldotnet/examples/translate.aspx
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now