Skip to Content
0
Former Member
Jan 19, 2006 at 02:27 PM

problem in populating matrix through user data source

27 Views

Hi

I am trying to populate the matrix (by clicking a button)through user data source and using the setLineData function.

First time It populates accurately,

But when I again click the same button then before populating the matrix It shows the last record in all of the rows added in the matrix and then it override those records,which seems very eratic.

i am also using clear method but still it shows.

please help...

I am using the following code.......

while(!oRS.EOF)

{

int j=1;

for(int i=1;i<oMatrix.Columns.Count;i++)

{

oForm.DataSources.UserDataSource.Item(oMatrix.Columns.Item(i).DataBind.Alias).Value=oRS.Fields.Item(i-1).Vlue;

}

oMatrix.SetLineData(j++);

}