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
1871
Trouble editing cells.
posted

Every cell in the row is editable. My columns are manually created and are not bound to a dataset. When the Grid first loads it does not have anything in it as expected just empty rows and cells.

As soon as the user clicks on a cell I want to go into edit mode. It does not. In fact the grid does not even select the row. The only event that fires is the click event.

This is the first time I have ever tried to enable editing in a cell. Most of the Grids I make are strictly for informational purposes. So I realize this is not an INF problem but a lack of knowledge on my part.

I guess my question is how do I make my cells editable as soon as the grid loads?

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Michael Halsig said:
    Every cell in the row is editable. My columns are manually created and are not bound to a dataset. When the Grid first loads it does not have anything in it as expected just empty rows and cells.

    The grid must have a DataSource in order to function. If you don't want to use a DataSet or DataTable, then you can use UltraDataSource or any object that implement IList or IBindingList. If you need the users to be able to add or delete rows, then I recommend using an IBindingList, like UltraDataSource or BindingList<T>. If you don't need adding or removing, then List<T> is probably the most efficient thing to use.

Children