473,402 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Fullrow select in DataGrid?

Can someone tell me how to do (if possible) a fullrowselect in a datagrid?

When you click on a cell it moves the arrow pointer in the gutte to the
current cell, but if you click on the gutter it does a fullrow select...
any way to get this to work with a cell click?

Thanks,

Matt
Nov 21 '05 #1
2 3955
Hi Mat,
The following should work, but I haven't tested it. Looks ok though.

Private Sub dgList_RowChanging(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles dglist.CurrentCellChanged

dglist.Select(dglist.CurrentCell.RowNumber)

End Sub

Best Regards,
Phil Harvey

"Matt" wrote:
Can someone tell me how to do (if possible) a fullrowselect in a datagrid?

When you click on a cell it moves the arrow pointer in the gutte to the
current cell, but if you click on the gutter it does a fullrow select...
any way to get this to work with a cell click?

Thanks,

Matt

Nov 21 '05 #2
Works like a charm, many thanks!

Matt

"Phil Harvey" <Ph********@discussions.microsoft.com> wrote in message
news:D4**********************************@microsof t.com...
Hi Mat,
The following should work, but I haven't tested it. Looks ok though.

Private Sub dgList_RowChanging(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles dglist.CurrentCellChanged

dglist.Select(dglist.CurrentCell.RowNumber)

End Sub

Best Regards,
Phil Harvey

"Matt" wrote:
Can someone tell me how to do (if possible) a fullrowselect in a
datagrid?

When you click on a cell it moves the arrow pointer in the gutte to the
current cell, but if you click on the gutter it does a fullrow select...
any way to get this to work with a cell click?

Thanks,

Matt

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jon | last post by:
Hi all Looking for a way to select the fullrow when i click on LAG 3 So it marks all of LAG 3 for July, August, September If I select LAG 4 it'll select of LAG 4 in the different months It...
2
by: Chris Plowman | last post by:
Hi all, I was wondering if anyone can help me with a really annoying problem I have been having. I made a derived datagrid class that will select the row when a user clicks anywhere on a cell...
3
by: Zachary Hilbun | last post by:
I'm using a DataGrid control in a web form. I can display it using binding but when I click on any of the items there is no feedback that that row has been selected. I changed SelectedItemStyle...
0
by: Djimbo | last post by:
How can i select another Fullrow from DataGrid in CurrentCellChanged Handler function?
5
by: Vik | last post by:
If there are a few Select buttons in a datagrid, is there a way to distinguish in code which button was clicked? Thanks.
3
by: CharlesA | last post by:
Hi folks, I really need help with the following scenario, I'm going to describe as well as a I can what the setup is and what I can't understand I'm using the framework 1.1 using ASP.net with...
0
by: rupalirane07 | last post by:
Both grids displays fine. But the problem is only parent datagrid sorting works fine but when i clik on child datagrid for sorting it gives me error: NullReferenceException error Any...
0
by: JamesOo | last post by:
I have the code below, but I need to make it searchable in query table, below code only allowed seach the table which in show mdb only. (i.e. have 3 table, but only can search either one only,...
2
by: =?Utf-8?B?Y3JlYXZlczA2MjI=?= | last post by:
I have a nested datagrid in a xaml file, the parent datagrid loads the vendor information and the details loads the documents for that vendor in a datagrid. Everything is working fine until I click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.