Skip to content

Replies

0
Reyian
Reyian answered on Oct 23, 2008 2:21 AM

 Thank you. I have one more problem and I cant figure out the solution.

 Im supplying the data source at runtmine (it is an IList). Everytime I remove 

an Item to that List the grid updates(remove row) but when I added Item to the 

List, the grid doesn't update (no new row being created).

I tried the Update and UpdateData in the grid but nothings happen.

How I am going to do this?

0
Reyian
Reyian answered on Oct 22, 2008 9:32 AM

 Wheeeewww!! Awesome, Thanks

One more thing, how can I manipulate the order of the columns

in the grid, im binding the data source at runtime.

 

0
Reyian
Reyian answered on Oct 22, 2008 3:43 AM

Yes the text in the column header, I think by default it is Center, I want it to be left align.

I write this code in the grid InitializeLayout method

e.Layout.Bands[0].Columns["colKey"]…… header text left align. I dont know how to do it.

And how can I set the utragrid to multiselect rows, and then how can I get the objects in the 

selected rows? Thanks in advance and more power.

0
Reyian
Reyian answered on Oct 20, 2008 2:30 AM

 Thank you for that wonderful link 🙂 I hope I can find the solution to my problem in there.

0
Reyian
Reyian answered on Oct 18, 2008 10:47 AM

Thanks.

I tried it but I'm getting this exception:

System.InvalidOperationException was unhandled
  Message="Not enough context to add a new row. Either a row in this band or the parent band has to be active to provide for enough context."
  Source="Infragistics2.Win.UltraWinGrid.v8.2"
  StackTrace:
       at Infragistics.Win.UltraWinGrid.UltraGridBand.AddNewHelper(RowsCollection rows)
       at Infragistics.Win.UltraWinGrid.UltraGridBand.AddNew(Boolean calledFromAddNew)
       at Infragistics.Win.UltraWinGrid.UltraGridBand.AddNew()
 …

Sorry, but I'm really clueless on how to solve this problem.

Also, can anyone give a me sample code or tutorial on using UltraWinGrid (especially for manually adding data into the grid via code).

I've been googling for a couple of days now yet I haven't found any tutorial or sample code yet. 🙁

I hope you can help me. Thanks in advance.