Hi
I have a datagrid control that I want to be able to change the source SQL
statement for, I presume I can do this by setting the datasource property
and calling DataBind(). But how can I change the data formatting expression
property of a bound column at runtime, from within the C# code of my aspx
page?
I'm quite inexperienced with this so bear with me.
Thanks 3 1451
They're the same in number, but possibly not the same in format. For instance, I might have a toggle button that allows the user to switch between the three recordsets (which will appear in the same place
CompanyArea, WeekNumber, Sale
CompanyArea, WeekNumber, SalesVolum
CompanyArea, WeekNumber, SalesAsPercentOfCollection
etc...
but thanks for the sanity check - I think different grids sounds simpler I just wanted to make sure I wasn't doing something completely unnecessary!
Are the fields identical from one datasource to the other? If not, you might
be better off to have two grids, one for each datasource. You could hide the
one you don't want.
"Bonj" <a@b.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl... Hi I have a datagrid control that I want to be able to change the source SQL statement for, I presume I can do this by setting the datasource property and calling DataBind(). But how can I change the data formatting expression property of a bound column at runtime, from within the C# code of my aspx page? I'm quite inexperienced with this so bear with me.
Thanks
They're the same in number, but possibly not the same in format. For instance, I might have a toggle button that allows the user to switch between the three recordsets (which will appear in the same place
CompanyArea, WeekNumber, Sale
CompanyArea, WeekNumber, SalesVolum
CompanyArea, WeekNumber, SalesAsPercentOfCollection
etc...
but thanks for the sanity check - I think different grids sounds simpler I just wanted to make sure I wasn't doing something completely unnecessary! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Karam Chand |
last post by:
Hello
Is there anyway to change the default date format
(possibly in a .ini or .cfg file) from YYYY-MM-DD to
another format ? (ie, mm/dd/yyyy or any user-defined
format).
The useage that I'm...
|
by: Laurence Neville |
last post by:
This is regarding a change in the Short Date format under Hebrew Regional
Settings, that has caused huge problems in our ASP web application. The
change appears to have been introduced sometime...
|
by: Du |
last post by:
I want to format the text within my richtextbox. However I have large
amount of text to change, simply using richtextbox.select and format is not
pratical.
How do I change text format using...
|
by: Julius Fenata |
last post by:
Dear all,
I need help to change my item-template value format...
Here is my case, I have a datagrid, with 'SubjectPrice' field, and when the
grid displayed, my 'SubjectPrice' field displayed...
|
by: andreas.w.h.k. :-\) |
last post by:
How do I change the address location in the wsdl
<wsdl:port name="SearchSoap12" binding="tns:SearchSoap12">
<soap12:address location="http://searchservices/engine/search.asmx" />
</wsdl:port>
...
|
by: Tee GEE |
last post by:
I included my VBA below. I would like to change the font of the
"strBody" to be Bold, italic, color, etc. The code that I attempted to
write is identified by ***. Any help would be appreciated....
|
by: sonald |
last post by:
Hi,
Can anybody tell me how to change the text delimiter in FastCSV Parser
?
By default the text delimiter is double quotes(")
I want to change it to anything else... say a pipe (|)..
can anyone...
|
by: Orchid |
last post by:
How can I change a Date datatype to a Number datatype? For example, I
want a date 10/31/2006 to show 1031 as Number datatype. But I don't
want it becomes 39021. What formula should I use? ...
|
by: DavidOwens |
last post by:
SELECT DISTINCTROW Format(PERIOD.START_DT,"mmmm yyyy") AS MonthYear, SALES.PERIOD_ID, Sum(SALES.SALES) AS SumOfSALES, Sum(SALES.SALES_UNITS) AS SumOfSALES_UNITS, Sum(SALES.SALES_VALUE) AS...
|
by: Bface |
last post by:
Hi all,
Hope everyone had a good holiday. I am having a difficult time changing the date format of a field from Excel. I have never had this problem before. I link the excel spreadsheet to my DB,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
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,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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...
|
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...
|
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 project—planning, coding, testing,...
|
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...
| |