Mercury.QTP.CustomServer Namespace > VerificationServerBase Class : GetTableColNames Method |
'Declaration
Protected MustOverride Function GetTableColNames() As System.String()
protected abstract System.string[] GetTableColNames()
Return Value
protected override string[] GetTableColNames() { DataGridView GridView = (DataGridView)(this.SourceControl); int TotalColumns = GridView.Columns.Count; string[] ColNames = new string[TotalColumns]; for (int i = 0; i < TotalColumns; i++) { ColNames[i] = GridView.Columns[i].HeaderText; } return ColNames; }