ndevriendt
Programmer
Hello
I write a program in Visual Basic and work with the Control True DB Grid. With this True DB Grid I have 2 problems.
My first problem is: My grid have two columns. I want that the second column
is right aligned. I have set the alignment properties of the column on the right.
But when I select a record only the selected record is shown at the left side instead of the right side and this only for the current record.
Does somebody have an answer on this ?
My second problem is a much bigger problem with the dates.
The data that is showned in the grid is the result
of a select statement of SQL Server:
select description,from_date,to_date,Price from Tarif
In the grid he shows me the dates in the format MM/dd/yyyy in stead of dd/MM/yyyy. How can I show this in the Grid in the format dd/MM/yyyy.
I have also a textbox with this dates and there is set the
format of the textbox to dd/MM/yyyy and he show me the dates in the textbox in the format I want, but when I edit the field he try to save this as the format MM/dd/yyyy. So If I type 15/02/2000 (15 february) he try
to save it as (02 ????( 15 month doesn't exist)
Can somebody help me with this
Thank you for your time and answer
Devriendt Nico
I write a program in Visual Basic and work with the Control True DB Grid. With this True DB Grid I have 2 problems.
My first problem is: My grid have two columns. I want that the second column
is right aligned. I have set the alignment properties of the column on the right.
But when I select a record only the selected record is shown at the left side instead of the right side and this only for the current record.
Does somebody have an answer on this ?
My second problem is a much bigger problem with the dates.
The data that is showned in the grid is the result
of a select statement of SQL Server:
select description,from_date,to_date,Price from Tarif
In the grid he shows me the dates in the format MM/dd/yyyy in stead of dd/MM/yyyy. How can I show this in the Grid in the format dd/MM/yyyy.
I have also a textbox with this dates and there is set the
format of the textbox to dd/MM/yyyy and he show me the dates in the textbox in the format I want, but when I edit the field he try to save this as the format MM/dd/yyyy. So If I type 15/02/2000 (15 february) he try
to save it as (02 ????( 15 month doesn't exist)
Can somebody help me with this
Thank you for your time and answer
Devriendt Nico