partham
Active member
Dear Sir,
In a datagrid, we are displaying among others 2 columns which have a relation. They are "Data Type" and "Max Length". If "Data Type" is Date, the length should be 8 and it should not be modifiable. If the "Data Type" is Numeric, the maximum length should be 19. Otherwise, maximum length should be 255.
How can we acheive making the column enabled/disabled on changing rows?
How can we impose these contraints? Our though was to put the constraint on the underlying DataTable and thus disallow invalid values. Is this approach okay?
How can we set the value of another column depending on the value in one column? We are thinking of using the CurrentCellChanged Event. Is it the best method?
We have used the CurrentCellChanged event to track if the row selection has been changed? Is this the best method? We do not think so because this fires when we are within the row as well. We are unable to find an event which senses the row change. Is there one?
Thanks in advance for your time and suggestions.
Regards,
In a datagrid, we are displaying among others 2 columns which have a relation. They are "Data Type" and "Max Length". If "Data Type" is Date, the length should be 8 and it should not be modifiable. If the "Data Type" is Numeric, the maximum length should be 19. Otherwise, maximum length should be 255.
How can we acheive making the column enabled/disabled on changing rows?
How can we impose these contraints? Our though was to put the constraint on the underlying DataTable and thus disallow invalid values. Is this approach okay?
How can we set the value of another column depending on the value in one column? We are thinking of using the CurrentCellChanged Event. Is it the best method?
We have used the CurrentCellChanged event to track if the row selection has been changed? Is this the best method? We do not think so because this fires when we are within the row as well. We are unable to find an event which senses the row change. Is there one?
Thanks in advance for your time and suggestions.
Regards,