Hello,
I have a question regarding ultragrid template within ultrawingrid. Please help me out.
I have an ultrawingrid with 5 columns (date column, textbox column, dropdownlist column and amount columns(multiple)) and I want to add this grid to the windows user control. I want to use template for this ultrawingrid and only for amount columns and I want to enter data for all the other columns within in the grid without using ultragrid template. Moreover, in the template i'll be having one text box for amount with one ultragrid cell proxy. So, can I use the same cell proxy to multiple columns which is for multiple amount columns. Sample example would be really helpful. Thanks in advance.
Thanks,
AB
Hello AB,
Thank you for contacting Infragistics.
The UltraGridCellProxy object can only bind to one column in the grid. To get the behavior you're looking for, I would recommend handling the AfterCellUpdate event and using code similar to the following.
if (e.Cell.Column.Key == "columnKey") { // Repeat the following two lines for all cells you want to set. var cell2 = e.Cell.Row.Cells["otherColumnKey"]; cell2.Value = e.Cell.Value; }
Please let me know if you have any other questions about this.
Hello Dave,
Thanks for replying.
Can I please know whether I use row edit template of ultrawingrid for only few columns and for the rest of them will I be able to edit them within the grid itself without template? If so, sample example would be really helpful.
Ex: Suppose that I have a grid with 5 columns and for the first 3 columns i want to edit the values within the grid and for the rest 2 columns, i would like to open the template to enter the values and the extra information.
AB.