문제

i am trying to get datarow from aspxgridview but it says

Cannot convert type 'object[]' to 'System.Data.DataRow'

code i tried is

 DataRow dr = (DataRow)ASPxGridView1.GetRowValues(i, "ID", "School ID", "Name", "Type", "DOB", "Cell", "Guardian Cell");

&&

DataRow dr = (DataRow)ASPxGridView1.GetRow(i);
도움이 되었습니까?

해결책

You should be calling GetDataRow, that will return you a DataRow - the methods you are calling just now return object (which probably just wrap up object[]).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top