U
umesh garnaik via .NET 247
(Type your message here)
--------------------------------
From: umesh prasad garnaik
Dear
I have a datagrid which contains records. I have a select column, when i select it corresponding items should display in the textbox
For that i had write the code but not working.
protected void DataGrid1_ItemCommand(object sender, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
if(e.CommandName=="Select")
{
int i=(int)e.Item.ItemIndex;
TextBox1.Text=DataGrid1.Items.Cells[2].Text;
TextBox12.Text=DataGrid1.Items.Cells[3].Text;
fillGrid();
}
}
Any help highly acceptable.
Thanks & Regards
Umesh
--------------------------------
From: umesh prasad garnaik
Dear
I have a datagrid which contains records. I have a select column, when i select it corresponding items should display in the textbox
For that i had write the code but not working.
protected void DataGrid1_ItemCommand(object sender, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
if(e.CommandName=="Select")
{
int i=(int)e.Item.ItemIndex;
TextBox1.Text=DataGrid1.Items.Cells[2].Text;
TextBox12.Text=DataGrid1.Items.Cells[3].Text;
fillGrid();
}
}
Any help highly acceptable.
Thanks & Regards
Umesh