How to get the row and column in DataGrid Control ?

929Free 301 Reputation points
2020-09-23T08:54:54.3+00:00

Hello, When you click the left mouse button, how to get the number of rows and columns of cells? Who can help me.... Thanks

XAML Code:
<DataGrid Name="OneDayGrid" Canvas.Top="230" Width="1051" AutoGenerateColumns="False" EnableRowVirtualization="True" Canvas.Left="10" Height="693" GridLinesVisibility="All" HorizontalScrollBarVisibility="Disabled"></DataGrid >

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,783 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.