Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Unexpected datagrid behavior

Reply
Thread Tools

Unexpected datagrid behavior

 
 
G Dean Blake
Guest
Posts: n/a
 
      01-13-2005
I am writing a control that prints any datagrid. My control gets passed a
datagrid object and examines it, formats, and prints it. I am, however,
encountering what I consider unexpected behavior of the grid....

The grid is named dgBudgets.

In the page Load event I fill the dataset and bind dgBudgets.
I store dgBudgets in Session("myGrid").

In response to the click event of the PrintMe button I pass
Session("myGrid") to my control and call the print method. When doing this,
every thing works great.

But, if I pass dgBudgets to my control instead of Session("myGrid"),
everything prints except that right aligned horizontal column alignments are
notSet and non-visible columns are visible - everything else prints ok.

So, it seems that on the response back, when the printMe button is hit,
dgBudgets loses some of its attributes (although it is still visibly
correct). My understanding is that the initializeComponent code on the
response back should completely reconstruct the grid.

Why does dgBudgets lose its alignment and non-visible settings and nothing
else?

Thanks,
G


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unexpected page designer behavior Chuck Bowling ASP .Net 1 07-04-2005 02:06 PM
unexpected datagrid behavior G Dean Blake ASP .Net Datagrid Control 0 01-13-2005 04:56 PM
unexpected behavior in Datagrid paging : PLEASE HELP >: ( Juan Romero ASP .Net Datagrid Control 1 09-11-2003 04:38 AM
Re: std::ostringstream unexpected behavior with .net 2003. Russell Hanneken C++ 0 06-25-2003 10:22 PM
Re: std::ostringstream unexpected behavior with .net 2003. Victor Bazarov C++ 0 06-25-2003 10:20 PM



Advertisments