Hello,
I am working on ultrawingrid. I have data in a cell 1234-456-789
Based on some conditions i need to edit the first four digits(1234) and keep other part same and
based on some conditions i need to edit second part (456) and keep th eother two parts same.
and for some condtions i will be able to edit first and second(1234-456) and keep the other part same. and
The cell should take only numeric values , for the firat part the max value is 0 to 9999 and for the second part max value is 0-999 .
Please help me on this.
Thanks.
Please can anyone help me out with this scenarios
Hello Ishnant,
Please try the following settings and see if they help:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].Columns[0].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.IntegerPositive; e.Layout.Bands[0].Columns[0].MaskInput = "####-###-###"; e.Layout.Bands[0].Columns[0].Format = "####-###-###"; }
Please feel free to let me know if I misunderstood you or if you have any other questions.
Hi Boris,
Thanks for teh reply.
I am able to display the cell data in that format .
But the thing is i should be able to restrict the user from editing first (1234) based on some conditions and remaining two parts should be editable (3456-123)
Please any thpughts on this.
Thanks
when i try to edit the cell by using the backspace or delete the numbers are getting deleted from the last positions. Is this something excepted behavior
Boris,
Need some thoughts , based on some conditions how to restrict the user from not editing the 1234 part and allowing the user to edit 5678-123 part and for some conditions middle part will be not editable , first and last parts will be editable.
Yes, take your time. I will be waiting for it, it is interesting to me, so I am going to follow this thread. Have a nice weekend!
I will post the code in detail obver teh weekend.
Sure , I will post the code.
thanks.
I got some own ideas about this but never went down the road implementing them as I am sure it will be far from perfect. I am very curious of your resolution. Could you please provide the code you are using if possible, I believe that the other community members could benefit from it as well as me.
Thank you in advance.
I got this working through custom code.