|
-
Jul 3rd, 2003, 01:56 PM
#1
Thread Starter
Frenzied Member
datagrid tablestyle
in my datagrid I have a field that returns a number I would like to format the number:
1 = reconciled
2 = unreconciled
how do I format that field?
heres my tablestyle layout for that field...
VB Code:
Dim grdColStyle10 As New DataGridTextBoxColumn()
With grdColStyle10
.HeaderText = "Status"
.MappingName = "status_ind"
.Width = 50
.Alignment = HorizontalAlignment.Center
.ReadOnly = True
End With
It's tough being an unhandled exception...
___________
VB.NET 2008
VB.NET 2010
ORACLE 11g
CRYSTAL 11
-
Jul 4th, 2003, 01:22 AM
#2
Frenzied Member
There is a Format property of DataGridTextBoxColumn()
Cant you use that?
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
Jul 7th, 2003, 06:52 AM
#3
Thread Starter
Frenzied Member
It's tough being an unhandled exception...
___________
VB.NET 2008
VB.NET 2010
ORACLE 11g
CRYSTAL 11
-
Jul 7th, 2003, 10:32 AM
#4
Frenzied Member
VB Code:
Dim grdColStyle10 As New DataGridTextBoxColumn()
With grdColStyle10
.HeaderText = "Status"
.MappingName = "status_ind"
.Width = 50
.Alignment = HorizontalAlignment.Center
.ReadOnly = True
[b].Format="format string here"[/b]
End With
Ofcourse i cant understand what you mean by 1 = reconciled and 2 = unreconciled.
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
Jul 7th, 2003, 10:59 AM
#5
Thread Starter
Frenzied Member
the field I'm getting from the database is a status indicater...it is going to have ones and twos in there....
1 means the record is RECONCILED
2 means the record is UNRECONCILED
when I grab the data from the database and put it in my datagrid it comes over as ones and twos...the users have no idea what that means, so I want to format the field with RECONCILED and UNRECONCILED....so, if I use format = ""....where do I run a check to see if it's a 1 or 2?
It's tough being an unhandled exception...
___________
VB.NET 2008
VB.NET 2010
ORACLE 11g
CRYSTAL 11
-
Jul 7th, 2003, 11:04 AM
#6
Frenzied Member
Oh I see. That seems another story. Is the data on this special field going to be edited by the user or not? if yes what should she enter? 1 /2 or RECONCILED / UNRECONCILED?
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
Jul 7th, 2003, 01:52 PM
#7
Thread Starter
Frenzied Member
no they only are going to be able to view the data grid...inquiry only!..
It's tough being an unhandled exception...
___________
VB.NET 2008
VB.NET 2010
ORACLE 11g
CRYSTAL 11
-
Jul 7th, 2003, 02:37 PM
#8
Frenzied Member
In that case i think its better to format it when you retrive the data from the database.
your select statement will look something like this:
Select IIF(myfield=1,"RECONCILED","UNRECONCILED?") As newfiled From mytable Where .....
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
Jul 8th, 2003, 07:17 AM
#9
Thread Starter
Frenzied Member
It's tough being an unhandled exception...
___________
VB.NET 2008
VB.NET 2010
ORACLE 11g
CRYSTAL 11
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|