Click here to Skip to main content
15,889,651 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have link in datagridview which is at start I want link column should be placed at last how to do this?

C#
DataGridViewLinkColumn link = new DataGridViewLinkColumn();
           link.UseColumnTextForLinkValue = true;


           link.HeaderText = "Click to View";

           link.DataPropertyName = "lnkColumn";

           link.ActiveLinkColor = Color.White;

           link.LinkColor = Color.Blue;

           link.Text = "More";


          DgvregistrationList.Columns.Add(link);


I used this code for creating link by default link should be place in start i want end how to do this??
----------------------------------------------------------------------

C#
private void DgvregistrationList_CellContentClick(object sender, DataGridViewCellEventArgs e)
       {
           if (e.ColumnIndex == 0)
           {
               int row;
               //Get the row index
               row = e.RowIndex;
                   View_Registration.name = DgvregistrationList.Rows[row].Cells[1].Value.ToString();
 View_Registration obj = new View_Registration();
                obj.ShowDialog(this);
}
}

on click of link button new popup window(View_Registration form) appear.i have done this.but i want this window should not go back until it will close form how to do this??
Posted
Updated 7-Jun-12 19:32pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900