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 tried to upload my application, but it's too big to upload. So i just uploaded the source file.
somay, I think i found out why the count is 0, becasue the data source wasn't loaded yet when I count the rows, I just needed to move the code behind data loading. But what I really need to do in this program is implement selecting multiple cells and copy/paste between ultragrid and excel. I found out I can only select one cell in ultragrid unless I disable the cell editing first. I uploaded the code. I don't know if you can help with that also, I really appreciate your answer.
Yes, Please go ahead.
Do you use visual C# 2008 also ? if yes, I will upload my application. Thank you so much !
Can you try to print the rows directly from datasource? You can use following code as a reference
Dim ds As DataSet = MyUltraGrid.DataSource
Console.WriteLine(ds.Tables(0).Rows.Count).
Also can you upload sample app so i can take a look into it.
Thanks,