Hi Jon,
This is the lines that give to you the information that you want and the
problem I have.
int FoundRec = 0 ;
oleDbDataAdapte r1.SelectComman d.CommandText = "SELECT * FROM
EmployeeSalary WHERE EmployeeName = '"+ txtBox.Text.Tri m() +"' ";
dataSet11.Clear ();
oleDbDataAdapte r1.Fill(dataSet 11, "EmployeeSalary ");
FoundRec = dataSet11.Emplo yeeSalary.Rows. Count;
if (FoundRec > 0)
{
int ColumnsCount = dataSet11.Emplo yeeSalary.Colum ns.Count;
string[] AllColumns = new string[ColumnsCount];
StreamWriter LWriter = File.CreateText (@"C:\Documen ts and
Settings\bassem \Desktop\data.t xt");
for( int ColumnNo = 0 ; ColumnNo < ColumnsCount ; ColumnNo++)
{
//Here is the problem I can't get the value of the collumns in the
created array.
AllColumns[ColumnNo] = dataSet11.Emplo yeeSalary.Colum ns[ColumnNo][1];
}
Thanks.
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!