Solved

Data Grid HELP

Posted on 2004-09-17
4
140 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 27

Expert Comment

by:planocz
ID: 12084656
0
 
LVL 9

Accepted Solution

by:
checoo earned 500 total points
ID: 12084903
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
ID: 12089412
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
ID: 12091027
check out this link for converting C# to VB.NET

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

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB.net -  GroupBox / Panel DataBinding and behavior 3 37
vb.net deleting excel sheet in workbook 11 55
Read top line from CSV file 14 59
vb.net code 9 29
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

751 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