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
75
UltraGrid newbie questions
posted

I am using Infragistics WinForm controls v8.2.2 (quite new to them) in a C# project.

I would like to use an UltraGrid as a way for users to add/modify/delete entries in a SortedList (m_RoutingTable) as follows:           

Form Load:

BindingSource bindingSource = new BindingSource();
bindingSource.DataSource = m_RoutingTable.Entry.Values;
ultraGrid1.DataSource = bindingSource;

The form comes up with the correct entries but I am not able to easily edit them. 
When I show the "Add" button below the grid, I can add new rows and edit the columns at that time
but editing an existing row is next to impossible.  Am I missing something basic?  How do you delete
rows?  For that matter, how do you add rows without the "Add" button showing?

Also, the new rows don't seem to update the DataSource - is there a way to do that?

Can I use an UltraGrid completely unbound to anything and just do the grunt work myself?

Thanks for any help,
Joe

Parents
No Data
Reply
  • 17259
    Offline posted

    slowjoe said:
    editing an existing row is next to impossible

    What do you mean "impossible"? What is the problem exactly?

    slowjoe said:
    How do you delete
    rows?

    You need to select the row and click on "delete". Usually you select the row by clicking on the row selector in the left side of the row.

    slowjoe said:
    how do you add rows without the "Add" button showing?

    ultraGrid1.DisplayLayout.Override.AllowAddNew = AllowAddNew.TemplateOnBottom;

    slowjoe said:
    Also, the new rows don't seem to update the DataSource - is there a way to do that?

    That's probably a data source problem. Check the binding source AllowNew is true, and IsBindingSupended is false, and there could be more reasons for that. Try to debug and see.

    slowjoe said:

    Can I use an UltraGrid completely unbound to anything and just do the grunt work myself?

    No. The point of using the UltraGrid is that it is doing everything for you. You just need to learn (quite a lot) how to use it.

Children
No Data