Hi,
I have a wingrid which displays datatable. It displays first row as highlighted in blue color. So if user press edit or delete button, then he should be able to use the highlighted row details. Right now user cannot edit row details, unless he clicks on the row..
How can I make the highlighted row as selected and active one. Thanks!!
If you intentionally activate a row, rather than the automatic activation of the first row, and without activating any cells, what happens when you hit your Insert key? I would expect the behavior to be the same as when the first row is automatically activated when loaded.
Thanks for the response. I still have problems with Insert keyboard input.
When the form is open, win grid has rows and the first row is highlighted. But when I click Insert key it doesnot respond unless user clicks in the grid. I have handled Inser key in
ultraGrid1_KeyDown(object sender, KeyEventArgs e) event.
How can I make grid respond to insert key, when row is highlighted. Thanks!!!
snair01 said:I have a wingrid which displays datatable. It displays first row as highlighted in blue color. So if user press edit or delete button, then he should be able to use the highlighted row details. Right now user cannot edit row details, unless he clicks on the row.. How can I make the highlighted row as selected and active one. Thanks!!
If you're after the ability to have the first cell in the first row of the grid (for example) be put into edit mode as the form is shown, I suggest putting the following code in the Form_Shown event handler (written in C#):
if (grid.Rows.Count > 0){ grid.Rows[0].Cells[0].Activate(); grid.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.EnterEditMode);}
Hi ,
Selected row and active row are two different ones..
so to make ur highlighted or selected row as a active row set the grid.activerow =your intended row