Hello there, been trying to figure this out for a while and for some reason i cant duplicate the behavior that my normal dataviewgrid had.
would appreciate any help.
2)How do i make it so it selects a solid row when i click on the grid, right now it selects a whole row, but you can still click on the invidual
cells which throws off the groove. i know they have a cell selector in a little button, but i want to be able to click on any cell and select the whole row.
3) Im trying to get the value of the cells in the selected row.
Any help would be deeply appreciated,
thanks in advance.
Oh, by the way... if you don't want the active row in the grid to be highlighted, you can reset the grid.DisplayLayout.Override.ActiveCellAppearance and ActiveRowAppearance.
InitializeLayout probably fires before the grid has loaded any rows. I would probably do this immediately after you set the DataSource/DataMember of the grid (or call SetDataBinding).
Hello,
See my code below,
when I implement the same thing what you mentioned, it gives me an error stating that index out of range.
do you know what culd be the problem.
Private Sub ugrdImportDetails_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles ugrdImportDetails.InitializeLayout
With ugrdImportDetails
.Rows(ugrdImportDetails.Selected.Rows(0).Index).Selected = False
'End With
End Sub
e.Layout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.RowSelect;
that sets the row select
which is exactly what i was looking for.
Not sure if this is a bug, but im setting the Row[0].selected and it is deselecting it but the
row is still highlighted.
WOOT! After hours of learning how the grid works, i got the desired effect by doing:
this.dgvMemberItems.Refresh();
Is there an easier way? DataGridView in VS2005 has .ClearFocus(), you guys got anything like that?