P
PawelR
Hello Group,
Sorry my english is very little.
I have problem with show data from Table from DataSet in textBox.
In my apps I have "typed DataSet" myDS with table TabPerson [idPerson,
LastName, FirstName, Adres, telefon]
On Form I have dataGrid with one column form TabPerson - with LastName and 3
textBoxes tbFName, tbAdres, tbTel.
Event DoubleClick for dataGrid is
tbAdres.Text = myDS.TabPerson[dataGrid.CurrentRowIndex].Adres;
If I don't sort column this work correct - because index in dataGrid is the
same as index in TabPerson.
My question is how get correct index from dataGrid to show data in textBox
if I sort columns?
Thx
PawelR
Sorry my english is very little.
I have problem with show data from Table from DataSet in textBox.
In my apps I have "typed DataSet" myDS with table TabPerson [idPerson,
LastName, FirstName, Adres, telefon]
On Form I have dataGrid with one column form TabPerson - with LastName and 3
textBoxes tbFName, tbAdres, tbTel.
Event DoubleClick for dataGrid is
tbAdres.Text = myDS.TabPerson[dataGrid.CurrentRowIndex].Adres;
If I don't sort column this work correct - because index in dataGrid is the
same as index in TabPerson.
My question is how get correct index from dataGrid to show data in textBox
if I sort columns?
Thx
PawelR