2. selected values remove from grid view or list box value
3. particular datas only view in rdlc report (like manual field report)
4. print like shopping bill invoice.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Shweta LodhaRank #31 · 39.8K reputationPosted Mar 5, 2014, 11:13 AM EST
ArrayList list = new ArrayList();
list.Add("One");
list.Add("Two");
Retrieving data from arraylist:
foreach (int i in list)
{
Console.WriteLine(i);
}
PALANI MCA24 reputationPosted Mar 5, 2014, 7:26 PM EST
Abhijit PatilRank #700 · 3.4K reputationPosted Mar 5, 2014, 7:58 PM EST
1)you can take input from user and bind the gridview like below.
string[] arr1D = { "abhi", "ram", "ganesh", "nirranjan" };
Grid1D.DataSource = arr1D;
Grid1D.DataBind();
2)you can remove the selected row from gridview i assume here you are selected here to checkbox, you can checked checkted to deleted row.
ArrayList del = new ArrayList();
foreach (GridViewRow row in GridView1.Rows)
{
if (row.RowType == DataControlRowType.DataRow)
{
CheckBox chkDelete = (CheckBox)row.Cells[0].FindControl("CheckBox1");
if (chkDelete != null)
{
if (chkDelete.Checked)
{
string id = row.Cells[1].Text;
del.Add(id);
}
}
}
}
GridView1.DataBind();