function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VSK98VSK98 

lightning Datatable column issue

Hi All,

I am displaying the list of records using datatable but values not displaying correctly under column name. 

Image:
User-added image

Adv Thnx,
Regards,
VSK98
Best Answer chosen by VSK98
Maharajan CMaharajan C
Hi VSK,

I will suggest the below two solution  to solve your issue:

you can use which one is suit for you:

1. Change the data type : 

use the datatype as text don't go for number or integer.

 {label: 'Post Code', fieldName: 'BillingPostalCode', type: 'text'}

2. Just add the below style in your Component:
.THIS .slds-grid_align-end{
        justify-content: flex-start !important;
}

Can you please Let me know if it helps or not!!!

If it helps don't forget to mark this as a best answer!!!


Thanks,
Maharajan.C

All Answers

sfdcsushilsfdcsushil
Hello, what is the issue with values?
Maharajan CMaharajan C
Hi VSK,

I will suggest the below two solution  to solve your issue:

you can use which one is suit for you:

1. Change the data type : 

use the datatype as text don't go for number or integer.

 {label: 'Post Code', fieldName: 'BillingPostalCode', type: 'text'}

2. Just add the below style in your Component:
.THIS .slds-grid_align-end{
        justify-content: flex-start !important;
}

Can you please Let me know if it helps or not!!!

If it helps don't forget to mark this as a best answer!!!


Thanks,
Maharajan.C
This was selected as the best answer
VSK98VSK98
Thanks, Maharajan :)

It's perfectly working now. I have a question for you. Where did you get ".slds-grid_align-end". When I inspected couldn't find the same. Could you please reply to question.

Regards,
VSK98