Ok, so, I've got the button.
The fill grid looks like this:
\nprivate void fill_grid() \n{ \n string strConn, strSQL; \n strConn = "Provider=SQLOLEDB;" + \n "data source=DB;" +\n "Integrated Security=SSPI;" +\n "Initial Catalog=CAT"; \n\n strSQL = "select item_number, description, client, company, division from t_item_master";\n\tOleDbDataAdapter da = new OleDbDataAdapter(strSQL, strConn); \n\tDataSet ds = new DataSet(); \n\tda.Fill(ds, "t_item_master"); \n\tFormCodeGrid.DataMember = "t_item_master"; \n\tFormCodeGrid.DataSource=ds; \n}\n\n
The button even handler looks like this:
\nprivate void btnSelect_Click(object sender, System.EventArgs e)\n {\n int row = FormCodeGrid.CurrentRowIndex;\n MessageBox.Show("Selected: " + row);\t\t\t\n}\n
How to I actually the the DATA based on knowing the index?