T
Troy Bull
Greetings
I am new to C# coming from Java / EJB. I have been messing around and
in an app i am working on I am trying to get access to the fields of the
current row in a table adapeter (current row from binding source).
Here it the code I found that works, is there a better way??
code --------------
private void button3_Click(object sender, EventArgs e)
{
System.Diagnostics.Debug.Write("-------------------------------------\n");
int rowNum = timelogBindingSource.Position;
TimeCard.HomeDataSet.timelogRow t =
(TimeCard.HomeDataSet.timelogRow)timelogTableAdapter.GetData().Rows[rowNum];
System.Diagnostics.Debug.WriteLine(t.timein);
System.Diagnostics.Debug.Write("-------------------------------------\n");
}
------------------
I am new to C# coming from Java / EJB. I have been messing around and
in an app i am working on I am trying to get access to the fields of the
current row in a table adapeter (current row from binding source).
Here it the code I found that works, is there a better way??
code --------------
private void button3_Click(object sender, EventArgs e)
{
System.Diagnostics.Debug.Write("-------------------------------------\n");
int rowNum = timelogBindingSource.Position;
TimeCard.HomeDataSet.timelogRow t =
(TimeCard.HomeDataSet.timelogRow)timelogTableAdapter.GetData().Rows[rowNum];
System.Diagnostics.Debug.WriteLine(t.timein);
System.Diagnostics.Debug.Write("-------------------------------------\n");
}
------------------