[Solved] - Can I add border edges for Childtable in Datagrid?
Hi,
After hiding the datagrid's border [borderstyle.none], can I show these edges? I want the borders to resize according to the number of columns, ..

SIGN IN To post a reply.
7 Replies
SS
Susmitha Sundar
Syncfusion Team
May 4, 2020 02:28 PM UTC
Hi GridLock,
Thank you for using Syncfusion controls.
We are not clear with your requirement. Can you please provide more information?
1. Do you want to show the hidden row in bottom? If so, you scroll, it will come for view.
2. Do you want to resize the column borders?
It will be helpful for us to check on it and provide you the solution at the earliest.
Regards,
Susmitha S
TG
The GridLock
May 4, 2020 02:36 PM UTC
Hi Susmitha,
I have this pic you will probably be easier to imagine!

SS
Susmitha Sundar
Syncfusion Team
May 5, 2020 01:26 PM UTC
Hi GridLock,
Do you want the SfDataGrid borders like the below image?
Please let us know, it will be helpful for us to check on it and provide you the solution at the earliest.
Regards,
Susmitha S
TG
The GridLock
May 5, 2020 06:40 PM UTC
Hi Susmitha,

I want to hide the border datagrid then show only the border of the table , as shown below:
I lost the left and bottom sides.
SS
Susmitha Sundar
Syncfusion Team
May 6, 2020 04:15 PM UTC
Hi GridLock,
When you set the borderstyle as none, SfDataGrid’s outer border hides. Your mentioned right border is columns border. You can also change this border by QueryCellStyle event.
|
this.sfDataGrid1.Style.BorderStyle = BorderStyle.None;
this.sfDataGrid1.Style.HeaderStyle.Borders.Right= new GridBorder(GridBorderStyle.None);
this.sfDataGrid1.QueryCellStyle += SfDataGrid1_QueryCellStyle;
private void SfDataGrid1_QueryCellStyle(object sender, QueryCellStyleEventArgs e)
{
if (e.ColumnIndex == this.sfDataGrid1.ColumnCount - 1)
{
e.Style.Borders.Right = new GridBorder(GridBorderStyle.None);
}
} |
Sample link: https://www.syncfusion.com/downloads/support/forum/153888/ze/DataGrid_Borders2073402807
Please check the sample and let us know if you need further assistance on this.
Regards,
Susmitha S
TG
The GridLock
May 6, 2020 04:18 PM UTC
Hi Susmitha,
I want the borders outside the table, but maybe this is not necessary right now.
Thanks!
SS
Susmitha Sundar
Syncfusion Team
May 7, 2020 05:41 AM UTC
Hi GridLock,
Please let us know if you need further assistance on this.
We are happy to help you.
Regards,
Susmitha S
SIGN IN To post a reply.
- 7 Replies
- 2 Participants
-
TG The GridLock
- May 3, 2020 08:30 AM UTC
- May 7, 2020 05:41 AM UTC