How do I get a Row from a Gridview control in DevExpress?
Asked
Active
Viewed 1,002 times
3 Answers
8
I did some digging for you, and it seems like this is the best way to do it.

George Stocker
- 57,289
- 29
- 176
- 237
-
2thnx, but still wondering why implementing a bunch of classes to do something that was achieved with a single line of code? Isn't it stupid, even why it MAY be performant?!?! – Aug 28 '09 at 13:23
-
4No doubt. I'm not being glib, but perhaps you shouldn't use the DevExpress tools if they aren't easy to implement? Why not use a control that is easy to implement and extend? ASP.NET's ListView control will give you a lot of power, and is relatively easy to implement. – George Stocker Aug 28 '09 at 13:27
2
What are you trying to achieve? Do you want to get instance of object displayed as grid row? If so, try GridView.GetRow() method.

Przemaas
- 841
- 11
- 23
2
if you're not trying to do what przemaas has to say, then operate on the object that you're binding to (cause really, that's what the xtragrid is all about). If it's an xpcollection(T) that you're binding to, then any operations done on the records within it will propagate to the grid through the PropertyChanged event on the xpcollection.
If you're binding to a custom collection, then just inherit it from IBindingList and/or implement INotifyPropertyChanged.

Steven Evers
- 16,649
- 19
- 79
- 126