Page 1 of 1

Datagrid properties

Posted: Tue Feb 06, 2018 1:37 am
by kim
Using X2 Pro 10, with scripting:

1)
In a datagrid I can change the table font using

Code: Select all

dgTable.Font = new Font("Verdana", 16, FontStyle.Regular);
But I like to modify table header font as well, but doesn't know how. Any suggestions?

2)
Is it possible to remove the column most to left containing row indicator? I change selected row background color for this indication. I same some space in screen if could remove this column.

3)
Is it possible to change width of vertical scroll bar in this table? Or disable it?

Re: Datagrid properties

Posted: Tue Feb 06, 2018 2:38 am
by monikavd
Hi!

I've disable the "ParentRowsVisible" and "RowHeadersVisible" and it makes the first colum invisible, but, sometime, when I recompile the properties change to default.

I'm trying to modify some properties of datagrid but I don't know how.
Do yo know how to modify the columm width?

Thanks!

Re: Datagrid properties

Posted: Mon Feb 12, 2018 12:18 am
by kim
Hi

I didn't modify column width.
What I have found it seems header font cannot be modified :(

Re: Datagrid properties

Posted: Thu Oct 22, 2020 9:08 pm
by ThatGuy
monikavd wrote:
Tue Feb 06, 2018 2:38 am
I'm trying to modify some properties of datagrid but I don't know how.
Do yo know how to modify the columm width?
Hi,

Did anyone manage to change the column width properties?