- 博客(4)
- 资源 (5)
- 收藏
- 关注
原创 Attach js from server side
On suggestion is to use GridButtonColumn instead of GridTemplateColumn and set its DataTextField to corresponding field name. And you can set its CommandName and ConfirmText property like below.ASPX
2013-08-13 13:12:33 1148
原创 Call JavaScript from server side
It is possible to execute a JavaScript from server-side code. In order to do this, make sure that the code is actually inserted on the page – the easiest way is to put a simple alert() and check if it
2013-08-13 13:03:15 641
转载 How to add row numbers to DataGridView
You can render row numbers for DataGridView and DataGridViewX by handling RowPostPaint event. Then you use following code:void DataGridViewRowPostPaint(object sender, DataGridViewRowPostPaintEvent
2013-08-05 17:43:25 1178
转载 C# DataGridView显示行号的三种方法
方法一:网上最常见的做法是用DataGridView的RowPostPaint事件在RowHeaderCell中绘制行号:privatevoiddataGridView1_RowPostPaint(objectsender, DataGridViewRowPostPaintEventArgs e){try{e.Graphics.DrawString((e.RowIndex
2013-08-05 16:58:47 73326 10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人