Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
360
I want to be able to set the number that begins the row selector numbers. How can i do that?
posted

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?

Parents
  • 469350
    Verified Answer
    Offline posted

    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.

Reply Children