We have come across a situation that I thinks not many have.
Grateful for all responses.
Regards Maran
*************
* Scenario
A DataList binds to a DataRow[], with "RegionName " och "RegionShortNam e",
sorted on "RegionName ".
When the user saves changes, the controls in each DataListItem in the
DataList is fetched by FindControl and the text from "Region Name" is saved.
* Problem
When there is values in "RegionName " containing "w " och "v " (those letters
and a space), in the same postion and the rows after each other, the other
column, "RegionShortNam e", is sorted incorrectly for those rows.
"RegionName " is correkt in both cases, but their "RegionShortNam e", which
contains "w " or "v ", have been shifted.
The data is bound/shown correctly for both CultureInfo when displaying the
datalist, it is only when looping the controls the error shows.
**** Sample ****
Correct after LoadViewState (in a PostBack)
Row, Region Name (TextBox), Region Short Name (Label)
34, HJKL, New Mexico
35 NY, Nev York (Misspelled on purpose)
36, NV, Nevada
Incorrect in Save_OnClick (in a PostBack)
Row, Region Name (TextBox), Region Short Name (Label)
34, NY, New Mexico
35 NV, Nev York (Felstavat med flit)
36, HJKL, Nevada
* So far
- The problem depends on users choice of CultureInfo. The users using
English settings have no problem, those who have Swedish settings have this
problem.
- "View source" shows that the controls are rendered correctly.
- In Postback, when saving, the controls are populated in LoadViewState with
data from ViewState and DataBind() on the DataList. Here are the DataLsit's
control tree correct.
- After LoadViewState the save button event is run and when before anything
is done the DataList's control tree is incorrect
- The problem does not occur if we change "RegionShortNam e"'s Label to a
TextBox. This makes me think it has something to do with posted object, since
Labels are not included there.
- We have tested to override several events and examined the DataList's
control tree, but nothing found.
* Other
- The DataList is not using ViewState. LoadViewState populates the DataList,
which is checked and ok.
- There is no other sorting than when creating the DataRow[].
- In Global.asax we set the users CultureInfo with
Thread.CurrentT hread.CurrentCu lture = new CultureInfo(... ) in
Application_Aut henticateReques t.
- We have fixed the problem temporarily by changing the Label to a disabled
TextBox. 0 1125 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Xah Lee |
last post by:
Sort a List
Xah Lee, 200510
In this page, we show how to sort a list in Python & Perl and also
discuss some math of sort.
To sort a list in Python, use the “sort” method. For example:
li=;
|
by: Lisa |
last post by:
I have a web app that gets a recordset from the database and fills a
grid. You can drilldown from this table to a detail table.
Because the tables sometimes get huge, and because I have to go back
to the database again every time I postback anyway, I wanted to
disable ViewState in the grids. Just to minimize the amount of stuff
that gets...
|
by: Arjen |
last post by:
Hi,
I get this error message when sorting a gridview:
The GridView 'GridView1' fired event Sorting which wasn't handled
What do I need to do?
Thanks!
|
by: Codemonkey |
last post by:
Heya All,
Sorry, but I think it's about time for a monkey-ramble.
I've just had enough of trying to serialize even simple objects with VB. A
simple task you may think - stick the <Serialized()> attribute on the class
and away you go. As Homer would say - "D'Oh"
The root of my problem lies in the way VB implements Events and the fact...
|
by: shuckjunkmail |
last post by:
It was suggested that I re-submit this question as a new post rather
than adding onto an old and unanswered post.
The basic problem has to do with the .NET datagrid and sorting. I am
having trouble getting the correct row of data from the datagrid
immediately after re-sorting the datagrid. I am using the dataview for
accessing the data...
| |
by: Mark Gilkes |
last post by:
I have a DataGrid which I am adding to the page dynamically at the Init stage
of the page load. The DataGrid has AutoGenerateColumns turned off, has
BoundColumns and is bound to a DataView for its’ data source. I have also
added a TemplateColumn which is defined in a derived class and contains an
ImageButton. The derived TemplateColumn class...
|
by: Annie |
last post by:
Hello guys,
We are planning for a big project ... and in the warming up stages ...
we are trying to develop the applicaiton in n-tier.
One of the option is to use the ASP.net object datasource to find BO to
Controls.
I just want to know the pros and cons of Object Data source control based on
|
by: =?Utf-8?B?ZmFpcnl2b2ljZQ==?= |
last post by:
in a remoting application, i set a event in the host, and let the client to
book it, and in the host side i set the TypeFilterLevel to Full and open the
callback port in the client side, but told that these was an exception on the
invoked object.
can anyone tell my why? It is a very simple application just to test, and
here is the code, i am...
|
by: Plater |
last post by:
I am having trouble determining when my DataGridView object is sorting (based on a column header click).
The idea is, in a large table, sorting the columns takes time, so I show a splash screen. When it is done sorting I want the splash screen dissapear.
What I had been doing was using the CellClick and Sorted events:
private void...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |