473,405 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

How display RowState in computed column?

Is there any way to display the RowState of each row in a computed
column in the DataTable?
--
Bill
Nov 16 '05 #1
4 2382
Bill, the better metaphor is that a Row belongs to a table as opposed to a
column. Anyway, if it's a computer column it's based on a row. That Row
has rowstate

foreach(DataRow dro in myTable.Rows){
//Do Something;
}
"Bill Todd" <no@no.com> wrote in message
news:0b********************************@4ax.com...
Is there any way to display the RowState of each row in a computed
column in the DataTable?
--
Bill

Nov 16 '05 #2
Let me restate the problem. I have an existing DataTable and the
Columns collection of that DataTable includes a column in which I want
to display the RowState as a string. The question is, what expression
can I assign to the Expression property of the DataColumn that will
evaluate to the RowState, preferably as a string?

Thanks,

Bill

On Mon, 3 May 2004 20:02:25 -0400, "William Ryan eMVP"
<do********@comcast.nospam.net> wrote:
Bill, the better metaphor is that a Row belongs to a table as opposed to a
column. Anyway, if it's a computer column it's based on a row. That Row
has rowstate

foreach(DataRow dro in myTable.Rows){
//Do Something;
}
"Bill Todd" <no@no.com> wrote in message
news:0b********************************@4ax.com.. .
Is there any way to display the RowState of each row in a computed
column in the DataTable?
--
Bill


--
Bill
Nov 16 '05 #3
Hi Bill,

Based on my understanding, you want to display rowstate in a datacolumn in
datatable.

Actually, you can not display RowState in computed column through
DataColumn.Expression, because DataColumn.Expression has no such function.

Can you show me why you want to do this? I think you may want to display
the rowstate in a datagrid column. If you want to do this, you handle the
DataGrid UI's "changed" event, then query and display the rowstate in a
datagrid column.

This depends on you handle webform or winform datagrid, for more
information, please refer to this discussion:

http://groups.google.com/groups?hl=z...&threadm=uq4Tz
t6HDHA.1784%40TK2MSFTNGP11.phx.gbl&rnum=4&prev=/groups%3Fq%3DDataColumn%2BEx
pression%2BRowState%26hl%3Dzh-CN%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3D
uq4Tzt6HDHA.1784%2540TK2MSF

==============================
Please apply my suggestion above and let me know if it helps resolve your
problem.

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 16 '05 #4
Hello Bill,

I was reviewing the issue. Has the problem been resolved by Jeffery's
suggestoin? If there is any unclear, please feel free to post here and we
will follow up.

Thanks very much.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: DMAC | last post by:
If i want to split a computed column into two or more columns based on the the length (its a varchar) of the computed column, how often will sql server determine what the computed column is?...
0
by: Neil | last post by:
Hi, I'm getting some strange results using the autoincrement column on my datatable. I'm populating a datatable with data from my database and displaying this in a datagrid. The first time I get...
2
by: Olav Tollefsen | last post by:
I'm creating an ASP.NET e-commerce web site and I have to conditionally (depending on site / user settings) display prices either excluding or including tax. Prices are typically read from a...
1
by: Sam | last post by:
Hi, I have to face a tricky problem and I thought someone could help. I have a grid bound to a dataset and as soon as a row is selected one of the column is udpated according to the value in...
2
by: Dot Net Daddy | last post by:
Hello, I want to assign a column a computed value, which is the multiplication of a value from the table within and a value from another table. How can I do that?
13
by: Dale Harris | last post by:
I'm getting really strange behaviour where the data source RowState is not being updated to modified in some circumstances. I place my controls on a form, bind them through a BindingSource control...
3
by: perspolis | last post by:
Hi all I have a master detail table which I use them in Transaction to Update them. in some cases the detail table generates error and I Rollback transaction but RowState of master table dosen't...
2
by: =?Utf-8?B?Z2FuZQ==?= | last post by:
Hi, In a gridview, How can i display different columns between item and edit modes. For eg. i have a sql that returns productname, categoryname, etc. In viewmode, i need to display only...
7
by: Aamir Mahmood | last post by:
Hi All I have DataTable object. Is there a way that I can know which fields (columns) in the table are computed. Apparantly the DataTable.Columns returns all columns both computed and other....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
agi2029
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.