单击网格中的添加行按钮,然后单击网格中的另一个添加列 [英] Click on button Add Row in grid and Click on another Add Column in grid

查看:133
本文介绍了单击网格中的添加行按钮,然后单击网格中的另一个添加列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获得以下结果:



__________________________________________

M1 | M2 | M3 | button1 |

__________________________________________

a1 | b | C | |

__________________________________________

a2 | b | C | |

__________________________________________

button2 | | | |





如果点击按钮1在M3和button1之间添加一列

如果点击按钮2添加在a2和button2之间的更多行



请有人帮助我..我使用哪种控件?

我''使用ASP.NET 3.5。

How to get the following result like:

__________________________________________
M1 | M2 | M3 | button1 |
__________________________________________
a1 | b | C | |
__________________________________________
a2 | b | C | |
__________________________________________
button2| | | |


If click on button 1 to add one more column in between M3 and button1
if click on button 2 to add on more row in between a2 and button2

Please anybody help me.. which control i use?
I''m using ASP.NET 3.5.

推荐答案

按照以下链接



C#DataGridView添加列和行 [ ^ ]



如何使用c#在数据网格中动态添加列[< a href =http://stackoverflow.com/questions/2377400/how-to-add-column-dynamically-in-datagridview-using-c-sharptarget =_ blanktitle =New Window> ^ < /一个>]



动态地将行添加到datagridview [ ^ ]



在GridView中添加动态行with TextBoxes [ ^ ]



在带有TextBox的ASP.Net GridView控件中添加动态行 [ ^ ]
Follow below links

C# DataGridView Add Columns and Rows[^]

how to add column dynamically in datagridview using c#[^]

add row dynamically into datagridview[^]

Adding Dynamic Rows in GridView with TextBoxes[^]

Adding Dynamic Rows in ASP.Net GridView Control with TextBoxes[^]


这篇关于单击网格中的添加行按钮,然后单击网格中的另一个添加列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆