Hi,
Can anyone help me to get the row count from a dropdown list?
I just tried the statement like :
gridTable1().GetRowCount(
any suggestions?
Thanks,
Rick
Hi Rick,
The line you listed above is on the investment grid and not on the dropdown. you need to call the same action but on the combo. Record any action on the combo (like clicking a cell on the combo) and replace the Click(..) with GetRowCount(null)
That should work
Regards,
Ammar
Ammar,
I tried your method (clicking a cell on the combo) and replace the Click(..) with GetRowCount(null)), but it still retrun 0 yet. And I tried GetRowCount(null) function for Grid control (see attached screenshot), it retruns 0 either.
any tips? Thanks!
Thank you very much. It is really helpfull.
Great news that worked J. GetNAProperty does not use subitems instead it uses the control’s properties. You can learn all about the controls properties on the “API Reference guide” section of the online help of our NetAdvantage controls (http://help.infragistics.com/NetAdvantage/WinForms/2010.3/CLR2.0/ ). This method is so powerful as it gives you access to the entire object model of any Infragistics control.
For example our Grid has a rows property which is an indexed array each item represent a row on the grid. Each row has a child property called “Cells” (another indexed property) so if you want the text of a specific (say the second) cell on the first row of the grid you’ll need something like:
Grid.GetNAProperty(“Rows[0].Cells[1].Text”)
And to get the header caption of that column:
Grid.GetNAProperty(“Rows[0].Cells[1].Column.Header.Caption”)
If the property you are getting is a simple data type (number, string, or enumeration type) you’ll get the value of it. But if it is an object type like a UltraGridCell, then GetNAProperty will return a Hashtable with each of its properties name and value.
I hope this will help you master the great GetNAProperty and when you do so you’ll be able to get any information from any Infragistics control in your application.
Please let me know if you have any question
Yes, this statement works fine. Thanks! But I'm just wondering how can I know what is the exact property (in this case it is 'Rows.FilteredInRowCount') I should use for GetNAProperty() or other methods? Is there any reference to help learn about SubItems?
Try: Grid().GetNAProperty("Rows.FilteredInRowCount")
also try the same method on the combo that dropped down.
Let me know if that works
-Ammar