table.Columns.Add("Teacher", GetType(String)) table.Columns.Add("Course", GetType(String))
GridView1.DataSource = table GridView1.DataBind() table.Dispose()
Public Function GetTable(ByVal Teacher As String, ByVal Course As String, ByVal Subject As String, ByVal Sem As String) As DataTable cmd.commandtext="select * from Teacher" table.Rows.Add(Teacher, Course) Return table End Function
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)