how to add only one time checkbox in datagridview?

Posted by Bageshkumarbagi under C# on 6/19/2013 | Points: 10 | Views : 2062 | Status : [Member] | Replies : 2
Hi all,

how to add only one time checkbox in datagridview. I have create one datagridview and i add checkbox in the datagridview but problem is that when a reloading the page one more check box row is added. I want only one row of checkbox. Kindly suggest me or give code please. its urgent.


Thnaks,
Bagesh Kumar Singh

Thanks,
Bagesh Kumar Singh
Mark as answer if you have been satisfied



Responses

Posted by: lakhansin-22735 on: 6/27/2013 [Member] Starter | Points: 25

Up
0
Down
Hi,

Can you give some screen captures to better understand your problem?
Because at present it is not much visualize to me.

Thanks,



Lakhan Singh
Tech Lead
BeyondKey System Pvt. Ltd.
Indore, M.P.
India

Bageshkumarbagi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nadeemshaik on: 7/3/2013 [Member] Starter | Points: 25

Up
0
Down
you can convert particular datagridviewcell to datagridviewcheckboxcell like this

System.Windows.Forms.DataGridViewCheckBoxCell chk = new System.Windows.Forms.DataGridViewCheckBoxCell();
chk.Value = 0;
Datagridview1.Rows[<index>].Cells[<index>] = chk;
Datagridview1.Rows[<index>].Cells[<index>].ValueType = chk.ValueType;

Bageshkumarbagi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response