DataGrid.ColumnCount returns zero

Class library usage, coding and language questions.
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


I am Aditya Agarwal working in Philips Healthcare. We are using our own custom grid control derived from DevExpress.XtraGrid.GridControl version 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: 12169
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

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.

Ranorex Team