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 / Visual Studio.NET / General / August 2003

Tip: Looking for answers? Try searching our database.

Datagrid select column not working...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stu - 08 Aug 2003 14:12 GMT
Hi,

I have a datagrid with a column of select buttons (using the property
builder). Whenever I change the column from Link Button to Push Button the
ItemCommand handler stops picking up on the button click.

Has anybody come across this before / know how to fix it?

Also, when I turn on paging in the datagrid, the page numbers appear but
they are not links so I only see the top x records and cannot move on. Does
anybody know what I am doing wrong?

Thanks in Advance,

Stu
Sheeraz - 09 Aug 2003 06:03 GMT
Hi,
You must have to reassign the ItemCommand to the relevant
function after making the push button. there is no other
thing going wrong.
and for paging do the following:
in HTML of datagrid write "OnPageIndexChanged='changePage'"
and in Code write this.
public void changePage(Object sender,
DataGridPageChangedEventArgs e)
{
    DataGrid Event = (DataGrid) sender;
    Event.CurrentPageIndex = e.NewPageIndex;
    Event.DataBind();
}

>-----Original Message-----
>Hi,
[quoted text clipped - 19 lines]
>
>.

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.