all groups > dotnet windows forms databinding > january 2005 >
You're in the

dotnet windows forms databinding

group:

after fill the form doesnt show the data


after fill the form doesnt show the data Andreas
1/11/2005 1:37:01 AM
dotnet windows forms databinding: we have a form with a lot of controls ( 30 controls ) which are bound to a
dataset. to reduce network traffic we load the data from the database line by
line.
Example:
dataSet.dataTable.Clear();
dataAdpater.SelectCommand.Parameters["ID"].Value = CurrentID;
dataAdapter.Fill( dataset );

after the first fill the form shows the correct data. after the second fill,
no valid data are to see. the most textboxes are empty.

Thanks in advance.



Re: after fill the form doesnt show the data Andreas
1/11/2005 3:37:06 AM
Thanks, on the first test it seems to work.



[quoted text, click to view]
Re: after fill the form doesnt show the data Andreas
1/11/2005 3:59:03 AM
After some Tests we have seen, that this solution doesnt work. Any other idea?

Thanks for your effort.

[quoted text, click to view]
Re: after fill the form doesnt show the data Ritesh Jain via DotNetMonster.com
1/11/2005 10:46:07 AM
hi,
what i understood is that ur r fetching one-one record at a time and just displaying Current row's Data in COntrols that means at any instant ur datatable contains only one Record.................
well.................in that case u just try to create New instance of Dataset that clearing it...................


dataSet=new Dataset()
dataAdpater.SelectCommand = "Command"
dataAdpater.SelectCommand.Parameters("@ID").Value = CurrentID
dataAdapter.Fill( dataset )

hope this will work.....................

--
AddThis Social Bookmark Button