Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / July 2006

Tip: Looking for answers? Try searching our database.

Datagrid not working properly with storedprocedure

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Amol - 25 Jul 2006 12:54 GMT
Hello,

I am developing an apllication in which i want to change the values of
datagrid checkbox column according to parameter passed to the query.
But the problem is that, at first time when i usedto send the
parameter values it shows me the result ok for first time.But as i
change the value of the parameter (taken from textbox on button click)
it doesn't show me the appropriate values(not checking the checkboxes
appropriately).
I am using the storedprocedure for that purpose(for getting the result
of
query).
same Storedprocedure is also used for custom pagination  of datagrid.

Can anybody help me.

Thanks!
Dmytro Lapshyn [MVP] - 27 Jul 2006 12:47 GMT
Hello,

You should invoke the SetDataBinding method on the grid after you've
received the new dataset from the data adapter configured to execute the
stored proc through its SelectCommand.

Signature

Regards,
Dmytro Lapshyn [MVP]
http://blogs.vbcity.com/DmytroL

> Hello,
>
[quoted text clipped - 13 lines]
>
> Thanks!

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.