User-667042492 posted
hi,
i have a custom gridview and its source is a list<myClass> .. when i want to load its datasource items on RowUpdating event,
i couldnt get updating row's item from its source.. my code is like this;
1 object obj = this.DataSource;
2 Type type = obj.GetType();
3 PropertyInfo[] pInfo = type.GetProperties();
4
5 Assembly sysAss = Assembly.Load(pInfo[2].PropertyType.Assembly.FullName);
6 type = sysAss.GetType(pInfo[2].PropertyType.FullName, false, true);
7 obj = Activator.CreateInstance(type);
in line 7 i can load myClass but its new and its properties are not load..
i m using like this, because custom grid's datasource is one of my classes, and i want to update
my Class using its public Update method. how can i get original data from grids datasource, which is updating row?
thanks..