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!!
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);}
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!!!