M
Mattyw
Hi,
I am relatively new to Visual Studio.NET (i am using VB), I have
created a datagrid which I have bound to a SQL database, when I browse
the form with the datagrid it displays all the columns as expeced using
the following code:
If Not IsPostBack Then
SqlConnection1.Open()
Dim Reader As SqlClient.SqlDataReader
Reader = SqlCommand1.ExecuteReader()
DataGrid1.DataSource = Reader
DataGrid1.DataBind()
Reader.Close()
SqlConnection1.Close()
I now want to be able to select a row, either by clicking a checkbox
(if it's possible to add a checkbox to a datagrid) or using the select
button and then display the data from that row in a new page in a
format that is printable, I just need to know how to launch the
selected item in the datagrid to a new page. I'm pretty sure I'll be ok
with populating the new page with the data using labels, then having a
print button to print the page.
Any help would be appreciated.
Matt.
I am relatively new to Visual Studio.NET (i am using VB), I have
created a datagrid which I have bound to a SQL database, when I browse
the form with the datagrid it displays all the columns as expeced using
the following code:
If Not IsPostBack Then
SqlConnection1.Open()
Dim Reader As SqlClient.SqlDataReader
Reader = SqlCommand1.ExecuteReader()
DataGrid1.DataSource = Reader
DataGrid1.DataBind()
Reader.Close()
SqlConnection1.Close()
I now want to be able to select a row, either by clicking a checkbox
(if it's possible to add a checkbox to a datagrid) or using the select
button and then display the data from that row in a new page in a
format that is printable, I just need to know how to launch the
selected item in the datagrid to a new page. I'm pretty sure I'll be ok
with populating the new page with the data using labels, then having a
print button to print the page.
Any help would be appreciated.
Matt.