Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
2 Datagrid questions...
Message
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00703233
Message ID:
00704770
Views:
19
In answer to #2 below, here is the code to do it:
Private Sub dataGrid1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles dataGrid1.MouseUp 
     Dim pt = New Point(e.X, e.Y) 
     Dim hti As DataGrid.HitTestInfo = dataGrid1.HitTest(pt) 
     If hti.Type = DataGrid.HitTestType.Cell Then 
          dataGrid1.CurrentCell = New DataGridCell(hti.Row, hti.Column) 
          dataGrid1.Select(hti.Row) 
     End If 
End Sub
>2 questions on DataGrids in Winforms...
>
>1) Is it possible to get rid of the recordmark to the left of the 1st column in a datagrid?
>
>2) When a user selects a row in a datagrid, how can I programatically highlight every column in the row? I have some VFP code to do this, and I could try to apply it to a datagrid, but figured I'd ask if someone had come up with an easy way.
>
>Thanks,
>Kevin
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform