gridview及其子控件 [英] gridview and its child control

查看:77
本文介绍了gridview及其子控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,
面试中有人问我
If gridview has child control say textbox, which control is loaded first and why?

我感觉到了文本框,只是因为gridview的每一行都有文本框,并且它们在rowdatabound操作期间被加载.在每次进行行数据绑定操作之后,整个网格都准备就绪.

我不知道这个事实,我一直在寻找一些解决方案,但没有找到合适的解决方案,因此想在这里询问.

我可能知道这是正确的解决方案,还是有其他不同的逻辑?

谢谢

Hello friends,
I was asked in interview
If gridview has child control say textbox, which control is loaded first and why?

I felt textbox, just because each row of gridview has textbox and they are loaded during rowdatabound operation. After each rowdatabound operation then entire grid is ready.

I don''t know about the fact, I looked out for some solution but did not find appropiate solution for it so thought to ask over here.

May I know was this correct solution or there is something different logic??

Thanks

推荐答案

首先加载Gridview,然后再加载其子控件.

如果未加载Gridview,那么我们将如何获取它的事件,甚至我们也无法获得子控件.
Gridview is first load then it''s child control will load.

if Gridview is not load then how we will get it''s event and even we are not able to get the child control.


这篇关于gridview及其子控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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