This question is locked. New answers and comments are not allowed.
Hey there!
Im trying to change the value of a field if the content of it is null/white spaces. Im using the CellEditEnded event.
I've tried with my gridview's name.CurrentCell.Value="#" also tried with e.Cell.Value="#"
With no luck. Any idea? Should be fairly simple, but I can't figure it out.
Here's my code.
Im trying to change the value of a field if the content of it is null/white spaces. Im using the CellEditEnded event.
I've tried with my gridview's name.CurrentCell.Value="#" also tried with e.Cell.Value="#"
With no luck. Any idea? Should be fairly simple, but I can't figure it out.
Here's my code.
private void EditingRowsGrid_CellEditEnded(object sender, GridViewCellEditEndedEventArgs e) { if (string.IsNullOrWhiteSpace(e.NewData.ToString())) { // Insert content here to set the value to "#" } ; }