I have a problem with adding rows/cells values to GridControl. I am using Web Service as data source. My web service function runs perfectly and returns an xml type of value e.g.
<User>
<UserID>000015</UserID>
<UserGroup>MR</UserGroup>
<UserName>ARIF SETYOWARDOYO</UserName>
<IsActive>1</IsActive>
</User>
I added my web service to my project as 'Add Services'. And, my BindingSource code:
userBindingSource.DataSource = typeof(DXWindowsApplication1.WebService.User);
I have attached my BindingSource to the GridControl, and it automatically creates 4 columns, which are UserID, UserGroup, UserName, and IsActive.
but there's no data in their rows. If I run this script below, it'd run and return the values..
WebService.MyWebServiceWs = new WebService.MyWebServiceWs ();
WebService.User[] user = Ws.GetUserDetails();
string userId = user[0].UserID.ToString();
string userGroup = user[0].UserGroup.ToString();
string userName = user[0].UserName.ToString();
string isActive = user[0].IsActive.ToString();//int isActive = user[0].IsActive.Value;
so my question is, what am I to do next to get retrieve this WebService data into GridControl?
any reference would be really appreciated...
Thank You :)
Cheers..