I'm using Grid.Rows.count to get the count of rows in ultragrid, I put it in "InitializeLayout" event but it didn't work. Anybody knows which is the right event for me to do it ? I'm new to ultragrid. Any help will be appreciated. Thanks
I have 9 rows in my ultragrid, but the count returns 0, here is my code.
private void MyUltraGrid_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { int cnt = MyUltraGrid.Rows.Count();
}
I stepped in and cnt turns out to be 0.
Rows.count property should work. Can you post your InitiaizeLayout code here so i can get better idea whats going on?