չGridViewؼʽ


ϸ
http://www.cnblogs.com/webabcd/archive/2007/02/04/639830.html


ؼʹ
1꾭еʱıеʽ뿪еʱָеʽ
ʹ÷ԣ  
MouseOverCssClass - 꾭ʱе CSS 

2Զֶνи򡢽״̬ʾ
ʹ÷SmartSortingԣ 
AllowSortTip - Ƿʾ 
AllowMultiSorting - Ƿø 
SortAscImageUrl - ʾͼƬURLʹĬͼƬ 
SortDescImageUrl - ʾͼƬURLʹĬͼƬ 
SortAscText - ʾı 
SortDescText - ʾı

3ݰťCommandNameͻ
ʹ÷ClientButtonsԣ 
BoundCommandName - Ҫ󶨵CommandName 
AttributeKey - Ե 
AttributeValue - Եֵռλ{0} - CommandArgument{1} - Text 
Position - Եֵλ

4ѡ򣨸ѡȫѡȡȫѡѡָĸѡָӸѡΪѡ״̬ȡѡָĸѡָӸѡΪȡѡ״ָ̬ӸѡΪѡ״ָ̬ĸѡΪѡ״ָ̬ӸѡһΪȡѡ״ָ̬ĸѡΪȡѡ״̬
ʹ÷CascadeCheckboxesԣ 
ParentCheckboxID - ģ ѡID 
ChildCheckboxID - ģ ӸѡID 
YYControls.Helper.SmartGridViewеľ̬ 
List GetCheckedDataKey(GridView gv, int columnIndex) 
List GetCheckedDataKey(GridView gv, string checkboxId)

5̶ָСָУRowType̶УRowState̶ 
ʹ÷FixRowColumnԣ 
FixRowType - Ҫ̶еRowTypeöš,ָ 
FixRowState - Ҫ̶еRowStateöš,ָ 
FixRows - Ҫ̶еöš,ָ 
FixColumns - Ҫ̶еöš,ָ 
TableWidth - Ŀ 
TableHeight - ĸ߶

6Ӧеĵ¼˫¼ڷ˴ 
ʹ÷ԣ 
BoundRowClickCommandName - еĵ¼Ҫ󶨵CommandName 
BoundRowDoubleClickCommandName - е˫¼Ҫ󶨵CommandName

7еָѡѡеʱıеʽеָѡȡѡеʱָеʽ 
ʹ÷CheckedRowCssClassԣ 
CheckBoxID - ģ еĸѡID 
CssClass - ѡее CSS 

8ԴΪExcelWordTextӦ֤ԴΪDataTableDataSet 
ʹ÷ 
ΪSmartGridViewӵķ
Export(string fileName)
Export(string fileName, ExportFormat exportFormat)
Export(string fileName, ExportFormat exportFormat, Encoding encoding)
Export(string fileName, int[] columnIndexList, ExportFormat exportFormat, Encoding encoding)
Export(string fileName, int[] columnIndexList, string[] headers, ExportFormat exportFormat, Encoding encoding)

9Ҽ˵Ӧ¼򳬼 
ʹ÷ContextMenusԣ 
Text - ˵ı 
BoundCommandName - Ҫ󶨵CommandName 
NavigateUrl - ӵURL 
Target - ӵĿ괰ڻ 
SmartGridViewContextMenuCssClass - Ҽ˵ļʽ CSS Ҽ˵Ľṹdiv ul li a

10Զҳʽʾܼ¼ÿҳ¼ǰҳҳҳһҳһҳĩҳͷҳť 
ʹ÷CustomPagerSettingsԣ 
PagingMode - Զҳʾģʽ 
TextFormat - Զҳıʾʽĸռλ{0}-ÿҳʾ¼{1}-ܼ¼{2}-ǰҳ{3}-ҳ

11ϲָеͬĵԪ
ʹ÷ԣ  
MergeCells -  ҪϲԪеöš,ָ


OK