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?
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.
I am using an UltraDataSource. Allow Add and Delete Set to true. Four total columns. Each cell maintainable. I may not be getting my controls setup correctly to allow edit. Not sure this is my first maintainable grid. The only thing I know for sure is that the grid reacts like it is read only. Does a row have to have data in it to be editable?
Hi,
I'm not sure what you are asking. AllowAdd and AllowDelete on the data source have nothing to do with whether or not you can edit existing rows in the grid. Those determine if you can add or delete rows, not edit. So are you asking about adding rows, deleting rows, or editing existing rows?
Either way, the DataSource settings are general settings on the data source, but you can still limit the behavior in the grid, as well. So even if the data source allows editing, the grid might not depending on the AllowUpdate, AllowDelete, and AllowAddNew properties on the grid's Override for the DisplayLayout and the bands.