Skip to content

Replies

0
Ramya
Ramya answered on Jan 10, 2011 10:39 AM

Am not binding datasource in source page am binding in server side.and EnableDataViewState is true then also when i select a row its passing null value

 

 

 

 

foreach (GridRecord r in thi.availableTasks.Behaviors.Selection.SelectedRows)

{

 

 

 

int wiid = Int32.Parse(r.Items[this.availableTasks.Columns["WorkflowInstanceId"].Index].Value.ToString());

}

Please give solution as soon as possible.Its urgent.Thanks in advance

0
Ramya
Ramya answered on Jan 10, 2011 10:32 AM

Am  facing issue in

 

 

foreach (GridRecord row in this.availableTasks.Behaviors.Selection.SelectedRows)//in row am getting NULL

{

 

 

 

int wiid = Int32.Parse(row.Items[this.availableTasks.Columns["WorkflowInstanceId"].Index].Value.ToString());

}

EnableDataView property is true for webdatagrid and am binding Data in

 

 

 

Public void PopulateTable()

{

dt =

 

AvailableTaskManagement.GetAvailableTasksTable(aTasksWfRoles, aTasksQueue, aTasksResultSize, workflowRoles);

 

 

 

if

(updateCounts)

{

 

 

 

//todo: update available tasks count

}

availableTasks.DataSource = dt;

availableTasks.DataBind();

availableTasks.Visible =

 

true;

}