sir i added a new column as you said.. in my sql design view...
and this is my code to connect my sql table to vb.net datagridview
-------------------
Imports System.Data.SqlClient
Public Class Form2
Private cs As New SqlConnection("Data Source=JARM\SQLEXPRESS;Initial Catalog=SEARCH_STUDENT1;Integrated Security=True")
Private da As New SqlDataAdapter("SELECT * FROM tblsearchstudents1", cs)
Private ds As New DataSet
Private cmb As New SqlCommandBuilder(da)
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
da.Fill(ds, "tblsearchstudents1")
dg.DataSource = ds.Tables("tblsearchstudents1")
End Sub
-------------
where should i put this code??
IIF(Grade >= 4, 'Failed', IIF(Grade IN (1, 2, 3), 'Passed', 'Unknown'))
thanks sir.. waiting for your kind reply