2014年7月13日 星期日

[RESOLVED] how to disable page indexing in grid when in click a button


Hi


I have a grid with OnPageIndexChanging="grid1_PageIndexChanging"..


how to disable indexing when i click a button in C#..



Thank you



On button click you can do like this


Gridview1.AllowPaging = false;



hi


i want to bind grid to email when i click



i tried like this but in vain.....


void btn_Click(object sender, EventArgs e)


{

------------




}


public string GetGrid(GridView gr)

{



}



this is the correct way


wat error are you getting please post that



hi ...


i still see paging in my email body...


Thank you



Hi,


Try rebinding the gridview after setting "allowpaging". You can refer the resolved the thread


http://forums.asp.net/t/1643294.aspx


Or try it like this to hide the page index


GridView1.PagerSettings.Visible = false

Soure from http://forums.asp.net/t/1341564.aspx/2/10


Hope it can help you


沒有留言:

張貼留言