C
Cyril Tiwari
Could someone tell me how to add a button column to a datagrid, in a
Windows Form?
Here's where I'm at:
----------------------------------------------------------------------------
objOleDbDataAdapter = New OleDbDataAdapter("SELECT LNAME FROM
EMPLOYEE", objOleDbConnection)
objOleDbDataAdapter.Fill(objDataSet, "Employees")
DataGrid1.DataSource = objDataSet
DataGrid1.DataMember = "Employees"
-----------------------------------------------------------------------------
When I display the datagrid, I want 2 columns: 1 which lists the lname
of the employee, and another which consists of a button which allows
the user to go to a "details" page for that employee. I know this is
easy to do in a web app, but I can't figure out how to do this using
Windows Forms.
Any help would be greatly appreciated.
Thanks!
Windows Form?
Here's where I'm at:
----------------------------------------------------------------------------
objOleDbDataAdapter = New OleDbDataAdapter("SELECT LNAME FROM
EMPLOYEE", objOleDbConnection)
objOleDbDataAdapter.Fill(objDataSet, "Employees")
DataGrid1.DataSource = objDataSet
DataGrid1.DataMember = "Employees"
-----------------------------------------------------------------------------
When I display the datagrid, I want 2 columns: 1 which lists the lname
of the employee, and another which consists of a button which allows
the user to go to a "details" page for that employee. I know this is
easy to do in a web app, but I can't figure out how to do this using
Windows Forms.
Any help would be greatly appreciated.
Thanks!