Click here to Skip to main content
15,918,303 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionTree View node editing Pin
Uma Kameswari14-Jun-06 21:46
Uma Kameswari14-Jun-06 21:46 
QuestionOracleDataAdapter, OracleTransaction Pin
JernejR14-Jun-06 21:04
JernejR14-Jun-06 21:04 
QuestionPaging in datagrid Pin
Nagraj Naik14-Jun-06 20:50
Nagraj Naik14-Jun-06 20:50 
AnswerRe: Paging in datagrid Pin
Suamal15-Jun-06 1:01
Suamal15-Jun-06 1:01 
GeneralRe: Paging in datagrid Pin
Nagraj Naik15-Jun-06 4:34
Nagraj Naik15-Jun-06 4:34 
GeneralRe: Paging in datagrid Pin
Suamal15-Jun-06 18:57
Suamal15-Jun-06 18:57 
GeneralRe: Paging in datagrid Pin
Nagraj Naik15-Jun-06 19:49
Nagraj Naik15-Jun-06 19:49 
GeneralRe: Paging in datagrid Pin
Suamal15-Jun-06 20:11
Suamal15-Jun-06 20:11 
Like this you can implement it on vb.net .

I jave given a rough code to do

private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here

if(!IsPostBack)
{
Fillgrid();
//Initialize view state
ViewState["ID"]=null;
}

}

private void Fillgrid()
{
//To fill the grid
}

private void Maintain_View()
{
ArrayList ar=new ArrayList();

//Get Array List from Viewstate
if(ViewState["ID"]!=null)
ar=(ArrayList)ViewState["ID"];

//Check for items in the datagrid and accoring to the checkbox value
//add it to arraylist

foreach (DataGridItem dt in dgItems.Items)
{
//If check box valuw is checked
{
ar.Add(checkId); //Add to arrayList
}

}

//Set it to viewstate

ViewState["ID"]=ar;
}

private void Retrieve_View()
{
ArrayList ar=new ArrayList();
//Get Array List from Viewstate
if(ViewState["ID"]!=null)
ar=(ArrayList)ViewState["ID"];

//Compare this with datagrid items and populate the checkboxes
}

private void dgItems_PageIndexChanged(object source, System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
{
//while in pagination
dgItems.CurrentPageIndex =e.NewPageIndex();
Maintain_View();
Retrieve_View();
Fillgrid();

}

GeneralRe: Paging in datagrid Pin
Nagraj Naik15-Jun-06 21:38
Nagraj Naik15-Jun-06 21:38 
GeneralRe: Paging in datagrid Pin
Suamal15-Jun-06 22:58
Suamal15-Jun-06 22:58 
GeneralRe: Paging in datagrid Pin
Nagraj Naik15-Jun-06 23:22
Nagraj Naik15-Jun-06 23:22 
QuestionError : Page_Validators is undefined [modified] Pin
Praveen_S14-Jun-06 20:24
Praveen_S14-Jun-06 20:24 
AnswerRe: Error : Page_Validators is undefined Pin
minhpc_bk15-Jun-06 16:54
minhpc_bk15-Jun-06 16:54 
Questiondyamically generate 0 to n number of web charts within a templated control. Pin
uglyeyes14-Jun-06 19:47
uglyeyes14-Jun-06 19:47 
Questionsddfgfd Pin
surshbabuk14-Jun-06 19:44
surshbabuk14-Jun-06 19:44 
AnswerRe: sddfgfd Pin
_AK_14-Jun-06 20:18
_AK_14-Jun-06 20:18 
JokeRe: sddfgfd Pin
Guffa15-Jun-06 0:40
Guffa15-Jun-06 0:40 
GeneralRe: sddfgfd Pin
_AK_15-Jun-06 0:43
_AK_15-Jun-06 0:43 
Questionrename the file in vb.net Pin
amaneet14-Jun-06 19:36
amaneet14-Jun-06 19:36 
AnswerRe: rename the file in vb.net Pin
minhpc_bk14-Jun-06 20:02
minhpc_bk14-Jun-06 20:02 
Questiondraw graphs Pin
Najeed14-Jun-06 19:23
Najeed14-Jun-06 19:23 
AnswerRe: draw graphs Pin
amaneet14-Jun-06 19:29
amaneet14-Jun-06 19:29 
Questionbitmap class in vb.net Pin
amaneet14-Jun-06 19:20
amaneet14-Jun-06 19:20 
QuestionReading Contents of a Word File. Pin
deepaks314-Jun-06 19:15
deepaks314-Jun-06 19:15 
AnswerRe: Reading Contents of a Word File. Pin
amaneet14-Jun-06 19:22
amaneet14-Jun-06 19:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.