Hello,I have a problem,i want to get value of RadGrid2 but Radgrid2 in Radgrid1,i don't know how to get ID of radgrid with Button Click event
images : http://s1211.photobucket.com/albums/cc435/hieukenpro/?action=view¤t=e.png
and this's my code
Please Help Me
Thanks,
Trung Hiếu
images : http://s1211.photobucket.com/albums/cc435/hieukenpro/?action=view¤t=e.png
and this's my code
protected void Button1_Click(object sender, EventArgs e)
{
int count = 0;
string sukien = "";
string namhientai = "";
foreach (GridDataItem item in (How to get ID of RadGrid2 in this Event ?).SelectedItems)
{
foreach (GridColumn column in item.OwnerTableView.RenderColumns)
{
if (count == 1 || count == 2)
{
if (count == 1)
sukien = item[column.UniqueName].Text.ToString();
if (count == 2)
namhientai = item[column.UniqueName].Text.ToString();
}
count++;
}
}
}
Thanks,
Trung Hiếu