Hi,
i am having grid with 4 column and checkbox, after checking and on button click i can get employeeid(datakeyname of mastertableview) but how to get other three column value
i am having grid with 4 column and checkbox, after checking and on button click i can get employeeid(datakeyname of mastertableview) but how to get other three column value
<
telerik:RadGrid
ID
=
"RadGridRMEmployee"
runat
=
"server"
AllowMultiRowSelection
=
"True"
OnNeedDataSource
=
"RadGridRMEmployee_NeedDataSource"
onprerender
=
"RadGridRMEmployee_PreRender"
>
<
ClientSettings
Selecting-AllowRowSelect
=
"true"
AllowDragToGroup
=
"True"
EnablePostBackOnRowClick
=
"true"
>
<
Selecting
AllowRowSelect
=
"True"
UseClientSelectColumnOnly
=
"True"
></
Selecting
>
</
ClientSettings
>
<
MasterTableView
DataKeyNames
=
"EmployeeIDl"
>
<
Columns
>
<
telerik:GridClientSelectColumn
UniqueName
=
"ClientSelectColumn"
/>
</
Columns
>
<
PagerStyle
AlwaysVisible
=
"True"
></
PagerStyle
>
</
MasterTableView
>
</
telerik:RadGrid
>
protected void btnSaveTask_Click(object sender, EventArgs e)
{
bool check;
foreach (GridDataItem item in RadGridRMEmployee.SelectedItems)
{
CheckBox chk = (CheckBox)item["ClientSelectColumn"].Controls[0];
string EmployeeID = item["EmployeeID"].Text;
//HOW TO GET THESE 3 VALUES
string EmployeeName = item["EmployeeName"].Text;
string EmployeeType = item["EmployeeType"].Text;
string EmployeeEmail = item["EmployeeEmail"].Text;
}
}