I have tried to set numbers on row selector, i have tried to put by row numbers, it starts with number one , i have tried by row index and it also starts with number one. i want to be able to start with zero.
I want this beacuse in my grid i will be able to add "future" row that doesnt count as beging part of the others so thats why i need to enumerate it as number zero. but if i dont add that "future" row i want to the enumeration start at 1.
can you help me with some ideas?
In fact, there's already a CreationFilter on the forums that does almost what you want:
RowSelector numbering - Infragistics Community
The CreationFilter in this thread is assigning the value from a cell to the RowSelector. In your case, you would just use the Index property of the row minus 1.
Hi,
I'm not sure what you mean by "future row", but it sounds like maybe what you should do here is use the TemplateAddRow.
If you set AllowAddNew on the Override to TemplateOnTop (or TemplateOnTopWithTabRepeat), then this will give the user an add row where they can enter data above the first existing data row. The first row will still be row 1, and not row 0, because this is what Excel does, but the add row above it will have an asterisk in the RowSelector.
If that's no good, then the alternateive would be to change the numbers in the RowSelections using a CreationFilter to explicitly set the Text property of the TextUIElement inside the RowSelectorUIElement. This is a pretty easy CreationFilter to write, but if you have never used CreationFilters before, it could be a bit intimidating, so if you want to take that approach and you have trouble with it, let me know and I'm sure I can whip up some sample code.