We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DataGrid Column width

Thread ID:

Created:

Platform:

Replies:

3304 Mar 12,2003 08:38 AM UTC WinForms 0
loading
Tags: FAQ
Administrator [Syncfusion]
Asked On March 12, 2003 08:38 AM UTC

I have inherited DataGrid to a new myDG class but I had to override mousedown. In MouseDown I added code that first checks if the mouse is on grid's cell: If (hti.Type = DataGrid.HitTestType.Cell) Then Dim e1 As MouseEventArgs e1 = New MouseEventArgs(e.Button, e.Clicks, OFFSET, e.Y, e.Delta) MyBase.OnMouseDown(e1) Me.Select(hti.Row) End If Codes purpose is to select whole row istead of one cell. But I can't change my grid's columns width with mouse when my application is running, so what must I do? I sholud add some code to the IfElse-part in the code, but what? If there is anyone who can help me, I'd be very happy.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;