Hi
I am setting a DataTable as DataSource of UltraWinGrid.
I am using same grid for Edit and Insert functions. When I add new row to the grid, I need to restrict length of data entered in each column according to the SQL datasource.
If I use Grid.DisplayLayout.Band.Column.FieldLen property it gives error that "Can't set when bound to a database"
How can I limit Text entered in the grid?
Thanks
Shivangi
You need to look at the column properties of the grid such as Min Length,Max Length, Min Value, Max Value.
I have multiple columns with different data type and length requirements.
When I tried Grid.DisplayLayout.Band(0).Column("ABC").MaxValue = 123 for a column having VarChar as data type nothing happened.
I could not find MaxLength property of columns.