Browse by Tags
All Tags » Insertion Row (RSS)
-
Hi Henry,
The InsertionRow's DataContext is the System.Data.DataRow (assuming you are using DataTables, otherwise use whatever the type of your data item is). Therefore, you could handle the DetailConfiguration.InitializingInsertionRow event and get the data item there. Something like ...
-
If you are referring to the first cell in the InsertionRow, then you will need to handle its Loaded event, preserve a reference to it and then access its Cells collection to place the first cell in edit mode.
If you are referring to the first cell in the first datarow, then you will need to use the GetContainerFromItem method to retrieve the ...
-
When working with AutoCreateColumns = false, for the InsertionRow to
function property, you will need to manually set CellEditors on the
Columns.e.g.:<Column CellEditor=''{x:Static xcdg:CellEditor.TextBoxEditor}'' />
As for your second question, you can find the answer in this thread.
-
You could derive from InsertionRow and override OnPreviewKeyDown like this:
protected override void OnPreviewKeyDown( KeyEventArgs e ) { base.OnPreviewKeyDown( e );
if( e.Key == Key.Enter ) ...
-
If you want to get a reference to the InsertionRow in the headers of a grid, you will need to handle the InsertionRow's Loaded event and retrieve the reference there.
-
Hi,
I want to be able to access an insertion row from C# code. Specifically, from inside a method that handles an event fired from a cell editor control.
In our application, we have a control that allows a user to query the database for a valid value. For example, if they know a product code they may type it in directly, otherwise, a ...
|
|
|
|