Datagrid Problem
-
HI All I have one problem Pls give me ans becoz its very important i coudn't be able to solve. I have one datagrid in asp.net.I add one buttoncolumn in first column of grid.Butoon Command name is Edit. As per my requirement button text is changed. I got text of button which i clicked. But i want text of another button which is not clicked. Is it possible? pls reply me Thanks monika
-
HI All I have one problem Pls give me ans becoz its very important i coudn't be able to solve. I have one datagrid in asp.net.I add one buttoncolumn in first column of grid.Butoon Command name is Edit. As per my requirement button text is changed. I got text of button which i clicked. But i want text of another button which is not clicked. Is it possible? pls reply me Thanks monika
Hi Monika, Well as from ur wordings it seems that u want to fetch text of other button . first let me clear is it some order of button which text ur looking if it is u can have the option .just add one more cmdbutton in dg and make its visibility false and give it caption with a number wise field. u can fetch its value with other command name or u have findcontrol hope it can make u some help.
-
HI All I have one problem Pls give me ans becoz its very important i coudn't be able to solve. I have one datagrid in asp.net.I add one buttoncolumn in first column of grid.Butoon Command name is Edit. As per my requirement button text is changed. I got text of button which i clicked. But i want text of another button which is not clicked. Is it possible? pls reply me Thanks monika
Really not sure what you mean, but you can loop through all the rows in the datagrid in the server code and access whatever button you want?
-
HI All I have one problem Pls give me ans becoz its very important i coudn't be able to solve. I have one datagrid in asp.net.I add one buttoncolumn in first column of grid.Butoon Command name is Edit. As per my requirement button text is changed. I got text of button which i clicked. But i want text of another button which is not clicked. Is it possible? pls reply me Thanks monika
we can access any button in datagrid by using this code . you have to write this code if u want first row ,specify '0' in Items[0] Instead of zero u can specify any row number Button btn = (Button) datagridname.Items[0].FindControl("buttonname"); you can get the button text by using " btn.Text ". Response.Write(btn.Text);
srinivas