Re: Where to set GridView.PageIndex first time control is displayed
Hi Klein,I have tried to do as you advised - recreating gridview control - but the problem is still here.I was wondering does anyone out there has a similar problem? I am using .Net 4.5.Thank you
View ArticleRe: Where to set GridView.PageIndex first time control is displayed
Hi Jacob_Zac,Maybe there is a problem in the process of transformation. You could try to create the gridview control and bind the event step by step, then check if the gridview still display the...
View ArticleRe: Where to set GridView.PageIndex first time control is displayed
Hi Klein,Thanks, it seems to me that is could be a bug, although I have no idea is it in tool that converts the project, the compiler or somewhere else. I have kept all the references and everything...
View ArticleRe: Where to set GridView.PageIndex first time control is displayed
Hi Jacob_Zac,Jacob_Zac Can you please tell me in which version of VS did you test your code?As you say, i use the code in vs2013.Best Regards,Klein zhang
View ArticleRe: Where to set GridView.PageIndex first time control is displayed
Hi Klein,Strange thing is that recently I have converted the project to VS 2015. I used to set PageIndex in DataBound event and everything was working fine in VS 2013.Problem came after the project was...
View ArticleRe: Where to set GridView.PageIndex first time control is displayed
Hi Jacob_Zac,Jacob_Zac I can see that you are using SqlDataSource. I am using model binding with EF. I have tried the following code:Jacob_Zac PageIndex is properly set, but in gridview first page is...
View ArticleRe: Where to set GridView.PageIndex first time control is displayed
Hi Bulldog258,Simple suggestion and nice workaround. I thought of that, but my clients are used to existing ascending order and most of them are not very computer savvy so I would like to keep things...
View ArticleRe: Where to set GridView.PageIndex first time control is displayed
Hi a2h,Thank you for the reply.I have tried to put gridViewGuestEntries.PageIndex = Int32.MaxValue; in Page_Load. I am not setting the DataSource property and calling DataBind method because I am using...
View ArticleRe: Where to set GridView.PageIndex first time control is displayed
Hi Jacob,I don't know anything about model binding but I noticed you have AllowSorting="false". If it was set = true then could you sort either ascending or descending and effectively "reverse" the...
View ArticleRe: Where to set GridView.PageIndex first time control is displayed
Jacob_ZacPageIndex is properly set, but in gridview first page is displayed and not the last.Pager buttons show that the last page is selected which is not the case.Try setting the PagelIndex on...
View ArticleRe: Where to set GridView.PageIndex first time control is displayed
Hi Klein,Thank you very much for your suggestion and code sample.I can see that you are using SqlDataSource. I am using model binding with EF. I have tried the following...
View ArticleRe: Where to set GridView.PageIndex first time control is displayed
Hi Jacob_Zac,Jacob_Zac I am trying to set PageIndex to last page first time control is displayed.If you'd like to start with last page, you have to do this after the page sizes are determined. I have...
View ArticleWhere to set GridView.PageIndex first time control is displayed
Hi,I am using model data binding and default gridview pagination.I am trying to set PageIndex to last page first time control is displayed.I have tried to set it in DataBound event but that did not...
View Article