DataGrid.ColumnCount returns zero

Class library usage, coding and language questions.
adi_agrwl
Posts: 1
Joined: Wed Sep 24, 2008 9:54 am
Location: India

DataGrid.ColumnCount returns zero

Post by adi_agrwl » Wed Sep 24, 2008 10:14 am

Hi,

I am Aditya Agarwal working in Philips Healthcare. We are using our own custom grid control derived from DevExpress.XtraGrid.GridControl version 3.2.5.0. When I use the property CoulmnCount or other methods of the class DataGrid ,they don't work.

We are using Ranoex version 1.5.1.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Post by Support Team » Wed Sep 24, 2008 12:41 pm

The DevExpress.XtraGrid.GridControl is not the same as a DataGrid.
I suggest that you use Elements to automate the control.
The rows, columns and headers are available as children of the Element representing the DevExpress.XtraGrid.GridControl.

Michael
Ranorex Team