Click here to Skip to main content
15,923,576 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Gridview total number of rows Pin
srinandan..24-Nov-09 22:07
srinandan..24-Nov-09 22:07 
GeneralRe: Gridview total number of rows Pin
Satish Mahapatra24-Nov-09 22:22
Satish Mahapatra24-Nov-09 22:22 
GeneralRe: Gridview total number of rows Pin
srinandan..24-Nov-09 23:17
srinandan..24-Nov-09 23:17 
GeneralRe: Gridview total number of rows Pin
Nishant Singh25-Nov-09 0:50
Nishant Singh25-Nov-09 0:50 
QuestionRemove masterpage Pin
Subin Mavunkal24-Nov-09 18:47
Subin Mavunkal24-Nov-09 18:47 
AnswerRe: Remove masterpage Pin
Abhijit Jana24-Nov-09 18:52
professionalAbhijit Jana24-Nov-09 18:52 
QuestionProblem related to textbox Pin
Arun k. yadav24-Nov-09 18:29
Arun k. yadav24-Nov-09 18:29 
AnswerRe: Problem related to textbox Pin
Abhijit Jana24-Nov-09 18:53
professionalAbhijit Jana24-Nov-09 18:53 
GeneralRe: Problem related to textbox Pin
Anurag Gandhi24-Nov-09 20:39
professionalAnurag Gandhi24-Nov-09 20:39 
GeneralRe: Problem related to textbox Pin
April Fans24-Nov-09 22:58
April Fans24-Nov-09 22:58 
AnswerRe: Problem related to textbox Pin
Anurag Gandhi24-Nov-09 20:36
professionalAnurag Gandhi24-Nov-09 20:36 
QuestionApplication designing issue Pin
Amit Patel198524-Nov-09 18:16
Amit Patel198524-Nov-09 18:16 
AnswerRe: Application designing issue Pin
Abhijit Jana24-Nov-09 18:56
professionalAbhijit Jana24-Nov-09 18:56 
AnswerRe: Application designing issue Pin
Vimalsoft(Pty) Ltd24-Nov-09 19:27
professionalVimalsoft(Pty) Ltd24-Nov-09 19:27 
AnswerRe: Application designing issue Pin
carlecomm26-Nov-09 14:45
carlecomm26-Nov-09 14:45 
QuestionDetailsView Update Problem Pin
RajpootRohan24-Nov-09 18:11
professionalRajpootRohan24-Nov-09 18:11 
AnswerRe: DetailsView Update Problem Pin
Nishant Singh24-Nov-09 20:07
Nishant Singh24-Nov-09 20:07 
GeneralRe: DetailsView Update Problem Pin
RajpootRohan24-Nov-09 20:29
professionalRajpootRohan24-Nov-09 20:29 
GeneralRe: DetailsView Update Problem Pin
Nishant Singh24-Nov-09 21:20
Nishant Singh24-Nov-09 21:20 
GeneralRe: DetailsView Update Problem Pin
RajpootRohan24-Nov-09 23:10
professionalRajpootRohan24-Nov-09 23:10 
GeneralRe: DetailsView Update Problem Pin
sashidhar24-Nov-09 21:30
sashidhar24-Nov-09 21:30 
QuestionReal problem with GridView TemplateField Sorting Pin
Maxdd 724-Nov-09 6:30
Maxdd 724-Nov-09 6:30 
AnswerRe: Real problem with GridView TemplateField Sorting Pin
Maxdd 724-Nov-09 7:31
Maxdd 724-Nov-09 7:31 
GeneralRe: Real problem with GridView TemplateField Sorting Pin
Christian Graus24-Nov-09 7:32
protectorChristian Graus24-Nov-09 7:32 
GeneralRe: Real problem with GridView TemplateField Sorting [modified] Pin
Maxdd 724-Nov-09 10:33
Maxdd 724-Nov-09 10:33 
Christian Graus wrote:
Have you done any sort of debugging ? What have you found ?

Why don't you use descriptive variable names ?



I have found nothing.. I forgot to present my exact problem: if I run with the code in first post, and I try to sort, it happens nothing. With the "solution" of my second post, when I sort the Gridview disappears.

What is exactly descriptive variable names? Can you give an example?



Rather Use
DataView dataView = dataTable.DefaultView

Maxdd 7 wrote:
Session["data"] = dt;

Why do you need Session to store datatable. .. D'Oh! D'Oh! D'Oh!

Also what exactly the problem is? Check Page_Load, if you have set DataSource and DataBind for every page postback.. You should filter out using if(IsPostBack)



Yes, in fact Session["data"] its nothing Poke tongue | ;-P

My temp table is loaded this way:

if (!Page.IsPostback)
TempTable();

So I suppose I set DataSource and Databind just one time.. but its strange because if I do if(Page.Ispostback) my gridview does not appears...

Your advice, DataView dataView = dataTable.DefaultView, should I apply it in the code of my first post ( DataTable dataTable = GridView3.DataSource as DataTable; ) or the second one ? (DataTable dataTable = Temp as DataTable;) I tried with both but the problem still exists.. (first does not happen nothing, second disappear Frown | :(

Dont know else to do...


Thanks for your help!

modified on Tuesday, November 24, 2009 4:50 PM

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.